Skip to content

feat(ui): split / side-by-side page view#37

Open
advancedresearcharray wants to merge 2 commits into
mainfrom
feat/issue-426-split-view
Open

feat(ui): split / side-by-side page view#37
advancedresearcharray wants to merge 2 commits into
mainfrom
feat/issue-426-split-view

Conversation

@advancedresearcharray

Copy link
Copy Markdown
Owner

Summary

Implements kiwifs#426 — split / side-by-side page view for comparing pages and historical versions.

  • Split view — Two resizable panes, each with its own KiwiPage (breadcrumb, ToC, edit)
  • Open in Split View — Right-click on tree items or wiki links
  • Keyboard shortcutCtrl+\ / Cmd+\ (toggle_split) toggles split
  • Version compare — History view → "Compare with current" shows old version read-only in the right pane
  • Close× on the secondary pane or toggle shortcut again
  • Mobile — Disabled below 768px with a notice
  • Persistence — Split state stored in sessionStorage (kiwifs-split-view)

Test plan

  • go test ./internal/keybindings/... — PASS
  • npm test -- --run src/lib/splitView.test.ts src/lib/kiwiKeybindings.test.ts — 19/19 PASS
  • Manual: right-click tree item → Open in Split View
  • Manual: Ctrl+\ toggles split on/off
  • Manual: drag divider resizes panes
  • Manual: history → Compare with current
  • Manual: mobile viewport shows blocked notice

Closes kiwifs#426

Made with Cursor

Add resizable two-pane split view for comparing pages or historical
versions. Includes context-menu entry, Ctrl+\ toggle, sessionStorage
 persistence, history compare mode, and mobile guard.

Closes kiwifs#426
@advancedresearcharray advancedresearcharray force-pushed the feat/issue-426-split-view branch from 4d6a9d3 to 12660f9 Compare June 30, 2026 04:36
Ensure split view sets activePath when opened without a primary page,
route left-pane wiki links through app navigate() for URL/tree sync,
close split on primary page delete, and wire Mod+E/save/mode to the
left pane editor. Hide non-functional edit on the secondary pane.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(ui): split / side-by-side page view

1 participant