Dotted tree lines, branch highlight, per-note choice (#247) #335

Closed
kayg wants to merge 0 commits from issue/247-dotted-lines into dev
Owner

Builds kayg's pick (Dotted) in the real app.

  • Look: tree.css draws guides as before, and for data-lines="dotted" cuts them into round dots with a mask (--tree-dots, from shape.ts). Padding of list lines is 1/14 of a line height so every line is a whole number of dots tall and the rhythm runs unbroken across lines, wrapped or not.
  • Choice: per note in the Style sheet (calternal-lines in the note's properties, like Width and Font); the default for notes without one is Settings → Editor → Tree lines (ui.lines, default Dotted). The section called Writing is now called Editor (same link).
  • Branch highlight: the item holding the caret (while the editor has focus) lights its whole branch in the accent, on every device, instantly; a mouse pointer lights the branch under it with a soft fade (desktop only); any key hands the light back to the caret. Only --tree-lit and --tree-hl change, so nothing moves.
  • Cost: a selection change is one short walk over line depths already worked out (branchRange), no new parsing; only lines in view get a decoration.

Tests: unit (branch.test.ts), e2e in tree.spec.ts and prefs.spec.ts (Chromium and WebKit, 390 and 1440). Evidence on #247.

Refs #247

🤖 Generated with Claude Code

https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T

Builds kayg's pick (Dotted) in the real app. - **Look:** `tree.css` draws guides as before, and for `data-lines="dotted"` cuts them into round dots with a mask (`--tree-dots`, from `shape.ts`). Padding of list lines is 1/14 of a line height so every line is a whole number of dots tall and the rhythm runs unbroken across lines, wrapped or not. - **Choice:** per note in the Style sheet (`calternal-lines` in the note's properties, like Width and Font); the default for notes without one is Settings → Editor → Tree lines (`ui.lines`, default Dotted). The section called Writing is now called Editor (same link). - **Branch highlight:** the item holding the caret (while the editor has focus) lights its whole branch in the accent, on every device, instantly; a mouse pointer lights the branch under it with a soft fade (desktop only); any key hands the light back to the caret. Only `--tree-lit` and `--tree-hl` change, so nothing moves. - **Cost:** a selection change is one short walk over line depths already worked out (`branchRange`), no new parsing; only lines in view get a decoration. Tests: unit (`branch.test.ts`), e2e in `tree.spec.ts` and `prefs.spec.ts` (Chromium and WebKit, 390 and 1440). Evidence on #247. Refs #247 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Tests: Settings section is called Editor now (#247)
Some checks failed
CI / server (pull_request) Successful in 24s
CI / rust (pull_request) Successful in 1m45s
CI / web (pull_request) Failing after 2m45s
52db2b1f45
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Author
Owner

Landed in merge train #342.

Landed in merge train #342.
kayg closed this pull request 2026-10-14 19:15:23 +00:00
Some checks failed
CI / server (pull_request) Successful in 24s
CI / rust (pull_request) Successful in 1m45s
CI / web (pull_request) Failing after 2m45s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!335
No description provided.