Repository navigation
Restore right sidebar Ctrl shortcuts - #3796
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughRight-sidebar mode switch action defaults are updated from unbound to Ctrl+1–5 in keyboard shortcut settings; tests verify Control+digit key events resolve to the expected modes and that a custom settings file binding overrides the default. ChangesRight-Sidebar Mode Shortcut Defaults
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
Greptile SummaryRestores private Ctrl+1–5 default shortcuts for right-sidebar mode switching (
Confidence Score: 5/5Safe to merge; the change is limited to assigning five default shortcut values and updating test assertions to match. The production change is a one-to-one substitution of five No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["NSEvent (keyDown, Ctrl+1..5)"] --> B["AppDelegate.handleCustomShortcut"]
B --> C{"RightSidebarMode.modeShortcut(for:)"}
C -- "nil" --> E["Fall through to selectSurfaceByNumber"]
C -- "mode (files/find/...)" --> D{"shouldRouteRightSidebarModeShortcut"}
D -- "false (terminal focused)" --> E
D -- "true (sidebar focused)" --> F["focusRightSidebarInActiveMainWindow(mode:)"]
E --> G["tabManager?.selectSurface(at:)"]
F --> H["Right sidebar switches to mode"]
Reviews (2): Last reviewed commit: "Tighten right sidebar settings override ..." | Re-trigger Greptile |
Summary
Testing
Note
Low Risk
Low risk change limited to keyboard shortcut defaults and tests; main concern is potential shortcut collisions with existing Ctrl+digit bindings on some layouts or user configurations.
Overview
Restores hidden default shortcuts for right-sidebar mode switching by binding
switchRightSidebarTo{Files,Find,Sessions,Feed,Dock}to Ctrl+1..5 instead of leaving them unbound.Updates and extends regression tests to assert these actions remain non-public/non-settings-visible, still resolve via the default Ctrl+digit bindings, and can be remapped via both UserDefaults and
cmux.jsonoverrides.Reviewed by Cursor Bugbot for commit 06e88fa. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by cubic
Restore private Ctrl+1-5 shortcuts to switch right sidebar modes. They stay hidden from Settings and can still be remapped via
cmux.json.cmux.jsonoverride behavior.Written for commit 08b3ddf. Summary will update on new commits.
Summary by CodeRabbit
New Features
Tests