Repository navigation
Add reverse keybinding inspector with safe chord capture - #10402
Open
MkeyFrzn3s wants to merge 1 commit into
Open
MkeyFrzn3s wants to merge 1 commit into
MkeyFrzn3s wants to merge 1 commit into
Conversation
Press a shortcut in the keybindings guide to find its row, settle selection on release (including Shift+digit scan-code holds), and keep unsafe bindings text-searchable only. Co-authored-by: Cursor <[email protected]>
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.
Problem
The keybindings guide is great for browsing by name, but not for answering “what does this chord do?” without firing the binding. Typing to search still works; reverse lookup did not.
Behavior
Open the keybindings guide (
Super + K/omarchy-menu-keybindings). With shortcut capture armed:ShortcutInhibitor).Misses stay silent (no sticky “unsupported” banners). Bare Escape exits;
Super + Escapeis inspected as a chord. Shift+digit chords (e.g. move window to workspace) match via scan code, because Qt often reportsKey_Exclamon press andKey_4on release.Typing still filters by text; a chord lookup is the other direction of the same guide.
Safety
--inspect-keybindings), not for every dmenu.supported_keyand MenuModel naming are kept in sync via a parity test.Limitations
Shift+Alt+L/D) remain “static binding context unavailable.”Tests
./test/shell.d/keybinding-inspector-test.sh— normalize/classify, silent/release contracts, Shift+digit scan hold, allowlist parity./test/shell.d/keybindings-menu-test.sh— inspection metadata,SUPER+SHIFT+code:10round-trip, function-bind inspectabilityTest plan
Super + W→ release → row selected → Enter closes the windowSuper + Shift + digitsettles on the workspace row (not stuck filtered)Super + Escapeinspects; bare Escape exitsI used this a lot while building it and had fun putting it together. Happy to iterate if anything’s off.