Skip to main content

Panel containers

Panel containers are shell-side chrome that plugin views dock into. They are never a plugin surface themselves. A view picks its container by name, and the shell owns everything about the container it lands in. Four kinds exist:

  • the edge rails, where plugin views dock;
  • bands, the slim strips at the drawer column's top and bottom edges;
  • overlay panels, shell chrome such as the images panel;
  • floating panels, a rail popped out into its own window.

The edge rails​

The right and left rails are the containers plugin views dock into. You gate each rail on separately: panel_rail_enabled and left_rail_enabled. Both default to off. A view names its rail in its container word, right-rail or left-rail. The plugin-facing contract is panel views.

  • The output channels stand on the right rail alone, one titled section per dropterm.output channel.
  • Each rail has its own section list: panel_rail_sections and left_rail_sections (configuration). With a rail's key unset, the views stand in registration order and, on the right, the channels below them. With the key set, only the listed sections show, in list order.
  • With a gate off, nothing changes in the composition. With it on, the rail stands beside the drawer's column: the right rail after the column, the left before it. Both may stand at once, the column between them.
  • Each rail stands at 280 px until you resize it. Drag the rail's inner edge - the right rail's left edge, the left rail's right edge - and the rail follows the pointer in pixels, between 160 px and the width that leaves the drawer's column at least 320 px. A settled drag is remembered per rail: panel_rail_width_px and left_rail_width_px (configuration), so a restart reopens the rail at its dragged width.
  • A rail is display and click only, except its text fields. The terminal keeps the keyboard, and a field holds it while it has focus (panel fields).

Bands​

Bands are slim strips at the top and bottom edges of the drawer's column, where a plugin's views lay chips. They live behind the same container model as the rails. A band is declared by the shell (the tab strip's own, tab-strip, a reserved id) or by a row in a plugin's manifest (bands). A view seats in one with container = '<band id>'. Bands is the author's page.

A band hides, shows, moves between the edges, and drag-resizes. Your arrangement is remembered in panels.ron. No config key governs a band.

Overlay panels​

Overlay panels - the images panel is one - are shell chrome behind the same container model. They offer no plugin surface.

Floating panels​

A panel you pop out of a rail, or summon while no rail can show it, stands as a titled window inside the drop-down, over the column (panels is the author's page). The shell draws the window and owns every move: float, dock, drag, resize, raise. A plugin can ask for three of them through dropterm.panels. It can never make them itself.

The sections inside are the rail's own sections, painted by the same painters, so a view looks the same docked and floating. The terminal keeps the keyboard around a floating panel, and a field inside holds it exactly as a rail field does.

The container model's maintainer note lives in development.md. The walk rows live in testing.md.