feat(terminal): add Cmd+Arrow for cursor line navigation#926
Merged
Conversation
Contributor
📝 WalkthroughWalkthroughAdds Cmd+Left and Cmd+Right handling in the terminal keyboard handler to send Ctrl+A/Ctrl+E via onWrite, and remaps several global hotkeys to include different modifier combinations to avoid conflicts with terminal line navigation. Changes
Sequence Diagram(s)(omitted) Estimated Code Review Effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly Related PRs
Suggested Reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Frees up Cmd+Arrow for terminal cursor navigation by: - Remapping terminal switching from Cmd+Arrow to Cmd+Option+Arrow - Remapping pane switching from Cmd+Option+Arrow to Cmd+Shift+Arrow - Adding keyboard handlers for Cmd+Left (beginning of line) and Cmd+Right (end of line) that send Ctrl+A and Ctrl+E respectively This matches expected macOS behavior where Cmd+Arrow moves to line boundaries, similar to browsers and IDEs.
1c5f595 to
3528510
Compare
5 tasks
This was referenced Feb 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
apps/desktop/src/shared/hotkeys.ts: Updated keybindings for terminal/pane switchingapps/desktop/src/renderer/.../Terminal/helpers.ts: Added Cmd+Left (Ctrl+A) and Cmd+Right (Ctrl+E) handlersTest plan
Summary by CodeRabbit
New Features
Changes
✏️ Tip: You can customize this high-level summary in your review settings.