Commit 2e0a230
Add split view and diff view for comparing files side by side
Adds two new features activated via tab context menu:
- Split View: view two open files side by side with independent scrolling
- Diff View: compare two files with color-coded differences, aligned spacers,
synchronized scrolling, and hunk navigation (F7/Shift+F7)
All split/diff code paths are gated behind viewMode checks with zero impact
on normal single-pane performance. Includes new IPC channels (get-lines-for-file,
diff-compute), SecondaryViewer with its own cache/pool, and keyboard shortcuts
(Ctrl+Shift+D toggle diff, Escape close).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent b745297 commit 2e0a230
9 files changed
Lines changed: 2854 additions & 243 deletions
File tree
- src
- main
- preload
- renderer
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
0 commit comments