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.76k stars 2.93k forks source link

Can't select outline panel item with keyboard #19664

Closed jkempff closed 2 hours ago

jkempff commented 2 hours ago

Check for existing issues

Describe the bug / provide steps to reproduce it

When moving the focus to the outline panel via ⌘ + ⇧ + B, I can use the arrow keys to navigate through symbols. Selecting a symbol via keyboard is not possible though. On the other hand, clicking on an item works as expected.

Environment

Zed: v0.158.1 (Zed) OS: macOS 14.6.1 Memory: 36 GiB Architecture: aarch64

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

Pressing Enter should move the focus to the corresponding symbol in the active buffer. Basically the same as with ⌘ + ⇧ + O.

For me personally it's not a big problem, since I use ⌘ + ⇧ + O most of the time, but consistency wise, I'd say it make sense to align those two lists.

If applicable, attach your Zed.log file to this issue.

No response

SomeoneToIgnore commented 2 hours ago

https://github.com/zed-industries/zed/blob/0ffc92ab6524000ead73b75ff5a21fcbeab37e05/assets/keymaps/default-macos.json#L563

space is a default binding for opening things in outline/project panels as enter is a default binding for renaming in macOs. This can be overridden to enter if needed, but the mac defaults are unlikely to change.