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.28k stars 2.87k forks source link

Add Key binding resolver function like emacs `describe-key` #14677

Open 1925381584 opened 2 months ago

1925381584 commented 2 months ago

Check for existing issues

Describe the feature

How can zed find the corresponding function from the shortcut key in the current panel? when i in emacs,i can find the function from the shortcut key, and i think Self-explanation is one of the best features of emacs. now in zed only support find function from function name, Do you have any plans to add this feature to zed and even more?

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

No response

notpeter commented 2 months ago

Are you talking about discovering the name of a Zed action for a given keyboard shortcut? Like emacs' "Help: Where is?" ctrl-h w or Atom's "Key binding resolver".

Screenshot 2024-07-19 at 15 14 57

Or are you talking about something else (finding a function definition in your own code base?)

1925381584 commented 2 months ago

What I'm trying to get at is the ctrl-h k operation in emacs (describe-key)