Skip to main content

Module agent_tab_default

Module agent_tab_default 

Source
Expand description

Where a pane an agent opens goes when the agent does not say: a tab of its own pane group.

An agent that opens a pane (an Editor, Files or widget pane) and names no placement gets a new tab in the pane group of the pane it opened last, or in its own pane’s group when it has none open there. A Browser is different: the first one an agent drives gets a pane of its own (a split below the agent’s pane), and each later one is a new tab of the newest browser pane the agent opened that is still open in its own window tab. An agent gets a split only when it asks for one (split), a floating window only when it asks for one (floating), and a tab of the person’s other panes, of another agent’s browser or of another window tab never: the group is looked for in the agent’s own tab only, among panes the agent opened.

Constants§

BROWSER_FIRST_SPLIT 🔒
Where an agent’s first browser goes: below the agent’s own pane, which gives up half of its space (down:half, see resolve_placement).

Functions§

apply 🔒
Make cmd open as a tab of the agent’s own pane group when it names no place, for an agent’s open (by_agent; a person’s own shell keeps its splits). agent is the opener, known by its signed identity (none for a container’s own route, which has no history to look at); the agent’s own pane is the one the request names as its reference.
browser_target 🔒
The browser pane agent’s next browser stacks onto: the newest browser pane it opened that is still in a pane of the tab of its own pane own. None for the agent’s first browser, and after its browsers were closed or moved to another tab: the next one is a first again. opened is the agent’s docked panes, newest first.
is_browser 🔒
Whether block_id is a browser pane.
laid_out 🔒
The panes the layout of tab tab_id holds: a block made with no placement is in the tab but in no pane.
names_where 🔒
Whether cmd says where the pane goes: a split, a floating window, a pane to stack onto, no placement at all, or a tab of its own.
target_for 🔒
The pane agent stacks its next pane onto: the newest pane it opened that is still there, docked, in a pane of the tab of its own pane own; else own. opened is the agent’s docked panes, newest first.