zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
48.94k stars 2.95k forks source link

Make `buffer_search::Dismiss` available in the command palette #15900

Open liouk opened 2 months ago

liouk commented 2 months ago

Check for existing issues

Describe the feature

Trying to dismiss the buffer search bar via the command palette doesn't work; while I can deploy it (command is: buffer search: deploy), I can't dismiss it. This would be very useful, especially in order to be able to define a command alias for it (e.g. "noh": "buffer_search::Dismiss").

If applicable, add mockups / screenshots to help present your vision of the feature

n/a

CharlesChen0823 commented 2 months ago

you can use Esc to dismiss

liouk commented 2 months ago

you can use Esc to dismiss

That works indeed, however it still means we're not able to create an alias neither a keymap (since buffer_search::Dismiss works only when the search bar is focused).