Skip to content

Commit 2e0a230

Browse files
ozgesolidkeyclaude
andcommitted
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

package-lock.json

Lines changed: 20 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@
3030
},
3131
"devDependencies": {
3232
"@electron/rebuild": "^3.7.2",
33+
"@types/diff": "^7.0.2",
3334
"@types/node": "^20.10.0",
3435
"electron": "^28.0.0",
3536
"electron-builder": "^24.9.1",
3637
"typescript": "^5.3.0",
3738
"vitest": "^4.0.18"
3839
},
3940
"dependencies": {
41+
"diff": "^8.0.3",
4042
"marked": "^17.0.1",
4143
"node-pty": "^1.1.0",
4244
"xterm": "^5.3.0",

0 commit comments

Comments
 (0)