Pages, from a real phone: the pane gone to has the page's height; dots for a page's panes in the trail; a 140 ms glide; the map as a tree; a held pane moves; a one-row selection bar; a tap on a link only opens it
- A shared page stacks whenever a share would cut the pane looked at short (stack.ts crowds; desktop unchanged). - Each trail step shows a dot per pane on its page, its own filled in its colour; past four, the number. - The strip glides to a page in 140 ms easing out (rAF, snapping off on the way), at once with reduced motion; a finger takes it from a glide. - The map draws tree lines from each parent into each child in the child's colour (pages.ts rails), crisp borders, deep forests indented less. - A press held on a pane's tab or the band above its title picks it up (touch), drop line and ghost, edge scroll, a second finger cancels; Move this pane up/down in the pane menu (Alt+Shift+k j). - The docked selection bar is one row: actions scroll sideways under a fade, the ⋯ and × fixed at its end. - The hover preview is the mouse's only (pointerType), dropped on any press, click or pane change; the keyboard preview is not shown on touch. 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
d3c2ea452a
commit
99aae86dff
14 files changed
+1163
-120
No files matched your search
@@ -799,6 +799,29 @@ class Store {
|
||||
this.emit();
|
||||
}
|
||||
|
||||
/** Whether the active pane can move up or down its column (the pane menu offers what it can). */
|
||||
paneMoves(): { above: boolean; below: boolean } {
|
||||
const here = this.branchNodes[this.paneAt];
|
||||
const x = here && this.panesPlaced.find((y) => y.node.id === here.id);
|
||||
const col = x ? (this.paneColumns.get(x.col) ?? []) : [];
|
||||
const i = col.findIndex((y) => y.node.id === here?.id);
|
||||
return { above: i > 0, below: i >= 0 && i < col.length - 1 };
|
||||
}
|
||||
|
||||
/** Alt+Shift+k and Alt+Shift+j (or the pane menu): move the active pane up or down its column, as dragging it does. */
|
||||
movePane(delta: number) {
|
||||
if (!this.panes) return this.say("Panes are moved in the panes view (v).");
|
||||
this.syncTrail();
|
||||
const here = this.branchNodes[this.paneAt];
|
||||
const x = here && this.panesPlaced.find((y) => y.node.id === here.id);
|
||||
if (!x) return;
|
||||
const col = (this.paneColumns.get(x.col) ?? []).map((y) => y.node.id);
|
||||
const i = col.indexOf(here.id);
|
||||
if (col.length < 2) return this.say("This is the only pane in its column.");
|
||||
if (delta < 0 ? i === 0 : i === col.length - 1) return this.say(`This pane is at the ${delta < 0 ? "top" : "foot"} of its column.`);
|
||||
this.reorderPane(here.id, delta < 0 ? col[i - 1] : (col[i + 2] ?? null));
|
||||
}
|
||||
|
||||
/** P (on the active pane) or a pane's pin: pin or unpin it. */
|
||||
togglePanePin(id = this.branchNodes[this.paneAt]?.id) {
|
||||
if (!this.panes) return this.say("Panes are pinned in the panes view (v).");
|
||||
|
||||
Reference in new issue
Block a user