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:
1 parent
24a048a9f8
commit
0df51493cd
13 files changed
+727
-61
No files matched your search
@@ -126,6 +126,9 @@ describe("actions", () => {
|
||||
expect(labels(pane).slice(-3)).toEqual(["Pin this pane", "Close this pane", "Show as one column"]);
|
||||
expect(find(pane, "Pin this pane").checked).toBe(true);
|
||||
expect(labels(paneEntries({ article: "Octopus", pinned: false }, act)).slice(0, 2)).toEqual(["# Octopus", "Open on wikipedia.org"]);
|
||||
// Its menu goes to the panes around it, by the keys that do.
|
||||
const go = paneEntries({ article: "Octopus", pinned: false }, act).find((e) => e.t === "choices" && e.label === "Go to the pane") as Extract<Entry, { t: "choices" }>;
|
||||
expect(go.options.map((o) => `${o.label} ${o.key}`)).toEqual(["left A-h", "right A-l", "above A-k", "below A-j"]);
|
||||
});
|
||||
|
||||
it("the top menu: documents, history, undo and redo, links, the layout and settings as commands", () => {
|
||||
|
||||
Reference in new issue
Block a user