Skip to main content

Module pane_caller

Module pane_caller 

Source
Expand description

Whose pane a window command acts on, for a connection registered as an agent.

An agent acts as itself: on its own pane (or a sub-block of it) a window command runs, and the action record names the agent. It does not act as the person, and it does not act as another agent: a pane another agent runs, or one no agent runs (the person’s terminal), is refused with what to do instead. A connection that is not registered as an agent (the window, or one nothing proved) is not affected.

Functions§

agent_acts_on_own_pane 🔒
Whether the connection ctx may doing on block_id: always, unless it is registered as an agent and the pane is not the one that agent runs. Err is the refusal, saying what the agent can do instead.
agent_deletes_own_sub_block 🔒
Whether the connection ctx may delete the block block_id as a sub-block: always, unless it is registered as an agent and the block is not a sub-block of the pane that agent runs. The pane itself is not a sub-block of anything, so an agent never deletes its own pane this way.
agent_writes_meta_of 🔒
Whether the connection ctx may write the meta of oref (block:<id>, tab:<id>, …): always, unless it is registered as an agent. An agent writes the meta of its own pane; a tab, window, workspace or any other object holds the person’s layout, names and settings, so it is refused with what to do instead.
pane_agent 🔒
The slug of the agent that runs block_id: the agent on the pane, or on the pane a sub-block hangs from.