You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(settings): record app shortcut bindings by pressing the keys #798
App shortcut rebinding is already released (#334, v0.3.44), but Settings → Shortcuts still edits the final key through a dropdown. User feedback specifically asks for “select to input”: focus the binding and press the desired shortcut.
Confirmed in v0.4.6 SettingsDialog and current main. This is the remaining recording-UI part of #214, not a request to rebuild customization.
Proposed behavior
A focusable recording control captures the supported chord and shows it before saving.
Preserve the existing Mod+Shift app-shortcut policy, conflict checks, disable/reset behavior and current stored overrides.
Ignore IME composition and modifier-only events; Escape cancels without changing the binding.
Keep recording input inside the editor so it neither triggers an app action nor sends bytes to a terminal.
Explain unsupported/reserved combinations without claiming a browser can deliver keys it intercepts.
Keep a usable alternative for touch devices without a hardware keyboard.
Acceptance
Cover commit/cancel, duplicate bindings, IME, non-Latin layouts, focus return, disabled/reset bindings, reload and terminal input isolation. Existing records must continue to load.
Settings already live in browser localStorage: different browser profiles/devices have independent preferences, while users sharing a profile share them. Account synchronization and Herdr keymap import (#642 / #653) are outside this change.
I would like to contribute the recorder UI here. My use case is an iPad with an external keyboard: choosing a chord by pressing it avoids an incomplete list of keyboard-layout-specific letters.
Before submitting the PR, could we agree one extension to the proposed policy: retain Mod+Shift defaults and existing stored overrides, but allow users to record exact modifiers for custom bindings (for example Cmd+PageUp without Shift)? I have tried this locally. Actual duplicate bindings, including the fixed dictation shortcut, are rejected; Ctrl-based and plain-key bindings warn that they can override terminal or text-input behavior. App and terminal detection use the same exact matcher. Browser/system-reserved chords get a warning, with no claim that keys intercepted by iPadOS can be captured.
The contribution would also include the preview-before-Save editor and manual touch alternative requested above, plus cancellation, reset/disable, IME/layout compatibility, reload and terminal-isolation checks. It would be independent of a separate pane-paging contribution, branched from current main.
I understand the current repository rule requires Mod+Shift, so I will keep the free-modifier proposal as a draft pending your direction. Would you prefer this opt-in customization, or should arbitrary modifiers stay a fork-only feature?
Direction from the maintainer, for #812:\n\n- Recording a binding by pressing the keys is welcome, with the candidate preview, explicit Save/Cancel, and the manual editor for touch devices without a keyboard.\n- Modifiers can be free, with one rule: a binding must not take a key the terminal or the agent needs, or one the browser keeps. Mod+Shift+key stays the default and is always safe. A combination such as Cmd+PageUp (or another chord with no letter the pty uses) is fine to allow.\n- The recorder should refuse, or at least warn before saving, these combinations:\n - plain Ctrl+letter and Alt+letter, which shells, editors and agents use (Ctrl+C, Ctrl+D, Ctrl+R, Ctrl+A/E, Alt+word moves...): taken by the app, they never reach the pane;\n - combinations the browser handles before the page can (Cmd+W, Cmd+T, Cmd+N, Cmd+Q and the like).\n\n@kratam, if you'd like to finish #812 along these lines, please go ahead. If there is no update in about two days, we'll carry it over the line ourselves from your commits, with credit to you in the changelog.
The dropdown in Settings → Shortcuts is the pain point for me: every binding is fixed to Mod+Shift+<one key> and I can only pick the last key from a long list. I'd love to just press the chord I want.
My concrete case: I want the command palette on Ctrl+K, the same as VS Code, Cursor, Slack, Linear and most apps I switch between all day. Today the closest I can get is Ctrl+Shift+K.
I read the direction above (plain Ctrl+letter should be refused or warned about, because shells and agents need it). I understand the risk for keys like Ctrl+C or Ctrl+R. Two ideas that would still let me opt in:
Warn, then allow. When I record Ctrl+K, show "Ctrl+K deletes to end of line in shells; it will no longer reach the terminal" and let me confirm. It is my choice to give that key up.
Scope it to where it is safe. Let a plain Ctrl+letter binding fire only when focus is not inside a terminal (chat view, sidebar, composer), and pass it through to the pane otherwise.
Either would cover me. Thanks for the app, I use it every day.
Thanks for the direction here and for the recorder in #951.
Following up on your note on #812, I've opened #1151 on top of main with the small bit I'd still find useful:
Exact modifiers in the recorder, e.g. ⌘+PageUp or ⌥⌘B, kept as pressed. Mod+Shift bindings stay as they are.
Your rules for risky chords: browser/OS/editing keys (Mod+W/T/N, ⌘+Q, Mod+C/V/X/A/Z, Ctrl+PageUp/PageDown…) are refused. Plain Ctrl/Alt chords get a warning and a Save anyway button, which would also cover @Bongrak's Ctrl+K.
A few more keys for Record: Home and End (I switch panes with Cmd+Shift+Home/End from an iPad keyboard), plus the punctuation keys. These are matched by key position, so they work with any keyboard layout, not just US English or a fixed list of characters. On my Hungarian keyboard, for example, É sits on the ; key.
The dropdown stays as it is. The new keys are only available through Record, since a US character in a list would point to a different key on most layouts.
Resolved in the latest release, v0.4.11 (shipped since v0.4.9): Settings → Shortcuts records a binding by pressing it, with Escape to cancel and reserved/assigned chords refused (#951), and chords keep their exact modifiers, with browser/OS keys refused and plain Ctrl/Alt chords saved only after Save anyway (#1151). Closing; please reopen if something in the recorder is still missing.
Activity
kratam commentedon Oct 11, 2026
I would like to contribute the recorder UI here. My use case is an iPad with an external keyboard: choosing a chord by pressing it avoids an incomplete list of keyboard-layout-specific letters.
Before submitting the PR, could we agree one extension to the proposed policy: retain Mod+Shift defaults and existing stored overrides, but allow users to record exact modifiers for custom bindings (for example Cmd+PageUp without Shift)? I have tried this locally. Actual duplicate bindings, including the fixed dictation shortcut, are rejected; Ctrl-based and plain-key bindings warn that they can override terminal or text-input behavior. App and terminal detection use the same exact matcher. Browser/system-reserved chords get a warning, with no claim that keys intercepted by iPadOS can be captured.
The contribution would also include the preview-before-Save editor and manual touch alternative requested above, plus cancellation, reset/disable, IME/layout compatibility, reload and terminal-isolation checks. It would be independent of a separate pane-paging contribution, branched from current main.
I understand the current repository rule requires Mod+Shift, so I will keep the free-modifier proposal as a draft pending your direction. Would you prefer this opt-in customization, or should arbitrary modifiers stay a fork-only feature?
devswha commentedon Oct 11, 2026
Direction from the maintainer, for #812:\n\n- Recording a binding by pressing the keys is welcome, with the candidate preview, explicit Save/Cancel, and the manual editor for touch devices without a keyboard.\n- Modifiers can be free, with one rule: a binding must not take a key the terminal or the agent needs, or one the browser keeps. Mod+Shift+key stays the default and is always safe. A combination such as Cmd+PageUp (or another chord with no letter the pty uses) is fine to allow.\n- The recorder should refuse, or at least warn before saving, these combinations:\n - plain Ctrl+letter and Alt+letter, which shells, editors and agents use (Ctrl+C, Ctrl+D, Ctrl+R, Ctrl+A/E, Alt+word moves...): taken by the app, they never reach the pane;\n - combinations the browser handles before the page can (Cmd+W, Cmd+T, Cmd+N, Cmd+Q and the like).\n\n@kratam, if you'd like to finish #812 along these lines, please go ahead. If there is no update in about two days, we'll carry it over the line ourselves from your commits, with credit to you in the changelog.
Bongrak commentedon Oct 15, 2026
+1 to this, from a daily user.
The dropdown in Settings → Shortcuts is the pain point for me: every binding is fixed to
Mod+Shift+<one key>and I can only pick the last key from a long list. I'd love to just press the chord I want.My concrete case: I want the command palette on Ctrl+K, the same as VS Code, Cursor, Slack, Linear and most apps I switch between all day. Today the closest I can get is Ctrl+Shift+K.
I read the direction above (plain Ctrl+letter should be refused or warned about, because shells and agents need it). I understand the risk for keys like Ctrl+C or Ctrl+R. Two ideas that would still let me opt in:
Either would cover me. Thanks for the app, I use it every day.
kratam commentedon Oct 15, 2026
Thanks for the direction here and for the recorder in #951.
Following up on your note on #812, I've opened #1151 on top of
mainwith the small bit I'd still find useful:⌘+PageUpor⌥⌘B, kept as pressed. Mod+Shift bindings stay as they are.Ésits on the;key.The dropdown stays as it is. The new keys are only available through Record, since a US character in a list would point to a different key on most layouts.
Tests are included. Happy to adjust anything.
feat(shortcuts): record chords with exact modifiers
docs(shortcuts): describe Mod+Shift as the default, not the only chord
feat(shortcuts): record chords with exact modifiers (#1151)
devswha commentedon Oct 16, 2026
Resolved in the latest release, v0.4.11 (shipped since v0.4.9): Settings → Shortcuts records a binding by pressing it, with Escape to cancel and reserved/assigned chords refused (#951), and chords keep their exact modifiers, with browser/OS keys refused and plain Ctrl/Alt chords saved only after Save anyway (#1151). Closing; please reopen if something in the recorder is still missing.