Panes: clicks, selection, tabs, peek and curves that keep to their content; Alt+h j k l between panes

- A click anywhere in a pane that is not text, a row or a link makes it the active pane; a click
  anywhere else, or Esc, clears a selection.
- The page measures where each pane was opened from, so its column stands in that order.
- A crowded column stacks the panes after the one looked at at its foot, a tab each, so every pane
  shows at least its tab; the curve into a tab becomes the tab's line where it meets it (no stub).
- A pane cut off for any reason (covered, too small a share, past the foot) peeks out as tall as its
  text needs, without moving the panes around it; curves are redrawn on peek, on a pane's text
  changing size (ResizeObserver) and every frame while anything animates.
- The curve joins the active pane's title rule too (the heavy rule alone marks it); a source out
  of sight in a pane that still shows is pointed at: dotted, turned at its end toward it; a curve
  leaves from a tab's foot only when its pane is folded to the tab.
- The selection bar sits under a pane's tab, takes the room above or below the words, never covers
  them; a sticky tab's title is centred under the heavy rule; focus is kept clear of the tab.
- Alt+h / Alt+l: the pane opened from (left) / one opened from this one (right); Alt+k / Alt+j
  (Alt+↑ ↓, [ ]): above / below in the column; from a node, a selection or an article; in the pane menu.
- Browser tests (e2e/panes3.spec.ts) with a curve invariant (curveFaults) checked after peeks,
  scrolls, resizes, folds, a drag and an article arriving.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
thalladaandClaude Opus 5.5 committed 2026-11-16 22:10:24 -05:00
1 parent 24a048a9f8
commit 0df51493cd
13 files changed
+727 -61

No files matched your search

+12 -7
View File
@@ -419,6 +419,9 @@ kbd, .help code { font-family: var(--mono); font-size: 0.86em; border: 1px solid
.col.crowded > .pane[data-covered] > .tabline { opacity: 1; pointer-events: auto; }
/* A pane scrolled past its own title shows its tab at its top as well, over its text (Panes.tsx watchHead). */
.pane[data-scrolled] > .tabline { opacity: 1; pointer-events: auto; }
/* Its title centred between the rule across the pane's top (heavy on the active pane) and its foot. */
.pane.active > .tabline { padding-top: 3px; }
.pane.on-branch:not(.active) > .tabline { padding-top: 1px; }
.pane[data-scrolled] > .pane-ctl { top: 2px; }
.pane[data-scrolled] > .grip { display: none; }
@media (prefers-reduced-motion: reduce) {
@@ -430,6 +433,8 @@ kbd, .help code { font-family: var(--mono); font-size: 0.86em; border: 1px solid
/* Peeking: a covered pane or column, the mouse resting on it, raised over its neighbours whole. */
.col[data-peek], .pane[data-peek] { z-index: 6; box-shadow: 0 3px 18px 0 var(--shade); }
/* A pane peeking down its column is shown as tall as its text needs; the extra height takes no room, so nothing around it moves. */
.pane[data-peek-h] { height: var(--peek-h) !important; margin-bottom: calc(-1 * var(--peek-extra, 0px)); }
.col[data-peek] .spine, .col.crowded > .pane[data-peek] > .tabline { opacity: 0; pointer-events: none; }
/* The wheel over what peeks scrolls its text, not the column under it. */
.col[data-peek] .pane-scroll, .pane[data-peek] > .pane-scroll { overscroll-behavior: contain; }
@@ -517,13 +522,13 @@ kbd, .help code { font-family: var(--mono); font-size: 0.86em; border: 1px solid
* rule itself (Panes.tsx curves; the pane's own is left out, data-ruled), so the two are one stroke.
* Where no curve lands (curves off, a covered source), the pane's own rule takes its colour.
*/
:where([data-colors="line"] .pane[data-hue]) > .pane-scroll > .pane-body > .pane-head:not(.focused),
:where([data-colors="line"] .pane[data-hue]) > .pane-scroll > .pane-body > .top:not(.focused) h1,
:where([data-colors="line"] .pane[data-hue]) > .pane-scroll > .pane-body > .wiki:not(.embedded) > .wiki-head:not(.focused),
:where([data-colors="line"] .pane[data-hue]) > .pane-scroll > .pane-body > .pane-head,
:where([data-colors="line"] .pane[data-hue]) > .pane-scroll > .pane-body > .top h1,
:where([data-colors="line"] .pane[data-hue]) > .pane-scroll > .pane-body > .wiki:not(.embedded) > .wiki-head,
:where([data-colors="line"] .pane[data-hue]) > .tabline { border-bottom-color: var(--hue-faint); }
:where([data-colors="line"] .pane.on-branch[data-hue]) > .pane-scroll > .pane-body > .pane-head:not(.focused),
:where([data-colors="line"] .pane.on-branch[data-hue]) > .pane-scroll > .pane-body > .top:not(.focused) h1,
:where([data-colors="line"] .pane.on-branch[data-hue]) > .pane-scroll > .pane-body > .wiki:not(.embedded) > .wiki-head:not(.focused),
:where([data-colors="line"] .pane.on-branch[data-hue]) > .pane-scroll > .pane-body > .pane-head,
:where([data-colors="line"] .pane.on-branch[data-hue]) > .pane-scroll > .pane-body > .top h1,
:where([data-colors="line"] .pane.on-branch[data-hue]) > .pane-scroll > .pane-body > .wiki:not(.embedded) > .wiki-head,
:where([data-colors="line"] .pane.on-branch[data-hue]) > .tabline { border-bottom-color: var(--hue); }
.pane[data-ruled~="head"] > .pane-scroll > .pane-body > .pane-head,
.pane[data-ruled~="head"] > .pane-scroll > .pane-body > .top h1,
@@ -817,7 +822,7 @@ kbd, .help code { font-family: var(--mono); font-size: 0.86em; border: 1px solid
}
.selbar.below::after { bottom: auto; top: -5px; transform: rotate(225deg); }
/* In the panes view the bar is set in its pane, so a pane or column over that pane covers it too. */
.pane > .selbar { position: absolute; }
.pane > .selbar { position: absolute; z-index: 1; }
/* The ⋯ by a row, a pane's head, a page's head or a note: invisible until wanted, never moving the text. */
.more {