Fork colours in the panes view: each branch's curve runs on into the rule under its panes' titles

Seven hues at one OKLCH lightness and a low chroma, light and dark, ordered so neighbours stay
apart for red-green and blue-yellow colour blindness. The focused branch at full strength, the
others fainter; the active pane's ink rule as before. A tab's foot and a dash on a spine carry the
colour too. /colors line|top|edge|off (and the menu) choose the line, a band across each pane's
top, one down its left edge, or none.

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 16:16:06 -05:00
1 parent 30957260ce
commit 9f4a5aae43
9 files changed
+105 -16

No files matched your search

+3
View File
@@ -229,6 +229,8 @@ export interface TopCtx {
auto: boolean;
speculate: boolean;
curves: boolean;
/** Where each fork's colour shows in the panes view (`/colors`). */
colors: "line" | "top" | "edge" | "off";
panes: boolean;
/** A document is open (its links can be looked for and reviewed). */
doc: boolean;
@@ -255,6 +257,7 @@ export function topEntries(c: TopCtx, act: Act): Entry[] {
setting("Reconcile after edits", "auto", c.auto),
setting("Write ahead while reading", "speculate", c.speculate),
c.panes && setting("Curves between panes", "curves", c.curves),
c.panes && { t: "choices", label: "Fork colours", options: (["line", "top", "edge", "off"] as const).map((v): Choice => ({ label: v, on: c.colors === v, run: () => act.command(`/colors ${v}`) })) },
SEP,
key(act, "Command line…", ":"),
key(act, "Keys and help", "?"),