Skip to content

keymap_editor: Make "toggle exact match mode" the default for binding search#42883

Merged
danilo-leal merged 2 commits intomainfrom
keymap-keystroke-search
Nov 17, 2025
Merged

keymap_editor: Make "toggle exact match mode" the default for binding search#42883
danilo-leal merged 2 commits intomainfrom
keymap-keystroke-search

Conversation

@danilo-leal
Copy link
Member

I think having the "exact mode" turned on by default is usually what users will expect when searching for a specific keybinding. When it's turned off, it's very odd to search for a super common binding like "command-enter" and get no results. That happens because without that mode, we're trying to match for subsequent matches, which I'm betting it's an edge case. Hopefully, this change will make the keymap editor feel more like it works well.

I'm also adding the toggle icon button inside the keystroke input for consistency with the project search input.

Making this change very inspired by Sam Rose's feedback.

Release Notes:

  • keymap editor: Made the "toggle exact match mode" the default keystroke search mode so that whatever you search for matches exactly to results.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Nov 17, 2025
@danilo-leal danilo-leal merged commit d77ab99 into main Nov 17, 2025
24 checks passed
@danilo-leal danilo-leal deleted the keymap-keystroke-search branch November 17, 2025 14:43
11happy pushed a commit to 11happy/zed that referenced this pull request Dec 1, 2025
… search (zed-industries#42883)

I think having the "exact mode" turned on by default is usually what
users will expect when searching for a specific keybinding. When it's
turned off, it's very odd to search for a super common binding like
"command-enter" and get no results. That happens because without that
mode, we're trying to match for subsequent matches, which I'm betting
it's an edge case. Hopefully, this change will make the keymap editor
feel more like it works well.

I'm also adding the toggle icon button inside the keystroke input for
consistency with the project search input.

Making this change very inspired by [Sam Rose's
feedback](https://bsky.app/profile/samwho.dev/post/3m5juszqyd22w).

Release Notes:

- keymap editor: Made the "toggle exact match mode" the default
keystroke search mode so that whatever you search for matches exactly to
results.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant