Skip to main content

Module editor_pick

Module editor_pick 

Source
Expand description

Which Editor pane an agent’s open goes into, when a tab has several.

The order is fixed, so the same layout always gives the same answer:

  1. one the tab shows now (the front tab of its pane, not minimized, not behind a magnified pane);
  2. the nearest to the pane that asked, by distance in the layout tree, with one after it (below or to its right) before one before it;
  3. the focused pane;
  4. one that needs no switch of its pane’s tab;
  5. the first in layout order.

Structs§

Pick 🔒
The Editor chosen, and a sentence for the log saying why.

Functions§

choose 🔒
The Editor of editors (in layout order) an open from the pane caller should go into.
needs_activation 🔒
Whether showing block_id takes switching its pane to it: it is a background tab of a pane stack.
path_to 🔒
The child indexes from node down to the pane holding block_id (in its stack or in front).
tree_distance 🔒
Steps between two panes through their nearest common branch.