Skip to content

fix(keymaps): comments shortcuts + always-on pane focus - #82

Merged
adibhanna merged 1 commit into
mainfrom
fix/comments-and-pane-shortcuts
Jun 10, 2026
Merged

fix(keymaps): comments shortcuts + always-on pane focus#82
adibhanna merged 1 commit into
mainfrom
fix/comments-and-pane-shortcuts

Conversation

@adibhanna

Copy link
Copy Markdown
Contributor

Addresses keyboard-shortcut gaps reported by a community member (Kelv).

Changes

  • Toggle Comments panel — new ⌘⇧C / Ctrl+Shift+C. The command existed but had no shortcut, unlike Sidebar/Connections/Outline (⌘1/2/3). Also surfaced in the command palette.
  • Comment a selection from the keyboard — new ⌥⌘M / Ctrl+Alt+M (the Google-Docs "add comment" convention), plus an Add Comment to Selection palette command. Comments the selection, or the current line when nothing is selected; opens + focuses the panel.
  • Focus panes without Ctrl+W — new always-on ⌥h/j/k/l (Alt+hjkl) pane/panel focus. The existing <C-w>hjkl is vim-mode-gated, so it does nothing when vim mode is off while the palette command still works (the reporter's exact symptom). Alt+hjkl closes that gap and sidesteps Ctrl+W being intercepted on some Linux setups. <C-w>hjkl still works in vim mode.

Notes

  • All new bindings are user-rebindable via the keymap settings; checked there are no collisions with existing bindings.
  • Alt+hjkl chosen to avoid known Ubuntu OS shortcuts (Ctrl+Alt+Arrow = workspaces, Ctrl+Alt+L = lock).

Verification

npm run typecheck (7/7), npm run test:run (140 passed / 1 skipped), npm run build (6/6) — all green locally.

Addresses keyboard-shortcut gaps reported by a user:

- Toggle Comments panel: add `Mod+Shift+C` (it had a command but no
  shortcut, unlike the Sidebar/Connections/Outline panels).
- Comment a selection without the mouse: add `Mod+Alt+M` (the Google-
  Docs convention) plus an "Add Comment to Selection" command. Comments
  the selection, or the current line when nothing is selected.
- Focus panes without <C-w>: add always-on `Alt+h/j/k/l` pane/panel
  focus that works regardless of vim mode. The existing `<C-w>hjkl`
  prefix is vim-mode-gated, so it's dead when vim mode is off while the
  palette command still works — `Alt+hjkl` closes that gap and sidesteps
  Ctrl+W being intercepted on some Linux setups.
@adibhanna
adibhanna merged commit 4eb9a4a into main Jun 10, 2026
5 checks passed
@adibhanna
adibhanna deleted the fix/comments-and-pane-shortcuts branch June 10, 2026 11:57
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.

1 participant