Windows and panes !235

merged merged by cmc on 2026-10-11 05:00 UTC · krz/orgstar:windows-and-panes into main

Discussion

cmc

docs/plans/2026-10-10-windows-and-panes.md, carried out. Closes #6.

  • One OrgEditor shows in several text views on its content storage; the focused view is the one commands act on. Folds, narrowing, sparse trees and evil state stay the buffer's, as in Emacs; the caret, selection and scroll position are each view's. docs/design.md says so now.
  • DocumentSession has panes; its single-buffer properties forward to the focused pane. PaneLayout is a split tree.
  • The main window shows its panes in a split tree with draggable dividers and per-pane tabs. C-x 2, C-x 3, C-x 0, C-x 1, C-x o and C-x 5 2; SPC w s/v/d/o/w/n and C-w in Doom; ⌃⌘2, ⌃⌘3, ⌃⌘0, ⌃⌘1, ⌥⌘` and ⌥⌘N on the Mac and in the View and File menus.
  • New Window opens an editor-only window (panes, tabs, modeline), as a second frame.
  • Manual: a Panes and windows section in The editor, the keys in Keys and commands, the tab bar as per pane.

Checked: swift test (708 tests) green; the Mac and iOS apps build; the main window with three panes and a shared fold by snapshot; the window and pane commands run to completion under the development hooks. A fresh review's Important findings are fixed in the last commit; the deferred minors are listed at the end of the plan.