Panes open beside by default; columns stack as the strip does; peek and drag
Enter, l and a click (a Ctrl-, Cmd- or middle click too) open into the next column beside what is there; Shift+Enter and a Shift-click open in place of the focused branch's pane there. Opening what is open focuses it; a second Enter on an open row keeps it. A document from the menu or /open still opens in place. A crowded column now stacks its panes the way the strip stacks columns, by the same code (stack.ts): each pane stuck a tab below the one before, the one looked at whole, the others slid under it, partly and at the limit down to a tab, a pinned one never covered. What is covered down to its strip is not painted. The mouse resting on a covered pane, tab or spine peeks it out over its neighbours; a click makes it the active pane. A pane's grip, the band above its title, or its tab drags it up or down its column (Esc cancels). Curves from words start at the end of their underline. Curves keep their elements and are drawn on a layer of their own, so a change repaints only what moved; with many curves in a gutter, lanes are ordered by swapping neighbours. 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
7a2df56440
commit
3789255147
13 files changed
+783
-254
No files matched your search
+3
-3
@@ -117,7 +117,7 @@ export function DocsPanel() {
|
||||
e.preventDefault();
|
||||
// The selection as it is now: the filter may have changed since this was drawn.
|
||||
const now = store.menuSelected();
|
||||
if (now) store.openDoc(now.node);
|
||||
if (now) store.openDoc(now.node, true);
|
||||
} else if (k === "Escape" || k === "Tab") {
|
||||
e.preventDefault();
|
||||
m.focus = "list";
|
||||
@@ -161,7 +161,7 @@ export function DocsPanel() {
|
||||
(document.activeElement as HTMLElement | null)?.blur();
|
||||
store.emit();
|
||||
}}
|
||||
onDblClick={() => store.openDoc(d.node)}
|
||||
onDblClick={() => store.openDoc(d.node, true)}
|
||||
>
|
||||
<div class="line">
|
||||
<span class="title">{d.title || "Untitled"}</span>
|
||||
@@ -170,7 +170,7 @@ export function DocsPanel() {
|
||||
<div class="sub">{d.excerpt || "No text yet."}</div>
|
||||
{selected && (
|
||||
<div class="actions">
|
||||
{d.node !== current && <button onClick={act(() => store.openDoc(d.node))}>open</button>}
|
||||
{d.node !== current && <button onClick={act(() => store.openDoc(d.node, true))}>open</button>}
|
||||
<button onClick={act(() => store.menuPrompt("rename"))}>rename</button>
|
||||
<button onClick={act(() => store.menuPrompt("duplicate"))}>save as</button>
|
||||
<button onClick={act(() => store.exportDocument(d.node))}>export .md</button>
|
||||
|
||||
Reference in new issue
Block a user