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
47.48k stars 2.77k forks source link

Automatically focus editor active file equivalent in project panel when you open the latter #17136

Open paolodelfino opened 3 weeks ago

paolodelfino commented 3 weeks ago

Check for existing issues

Describe the feature

When you open project panel, at least with the keymap, it should automatically focus the editor active file equivalent (that should be the file per se) in the project panel

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

image

Moshyfawn commented 3 weeks ago

I can't seem to reproduce it. Could you please tell us which version of Zed you're having this problem with? Could you also share the steps to reproduce this behaviour?

paolodelfino commented 3 weeks ago

Zed: v0.152.0 (Zed Dev cdaa80fefbfd8e023f76849a99440aa4c52cfbc8)

Reproduce: while focusing a file in the editor, use the keymap to open the project panel (I use ctrl+shift+e) and now you should see that it doesn't automatically select the editor active file equivalent in the project panel

thomaseizinger commented 1 week ago

Can confirm that this is still an issue on "Zed 0.154.0". It appears that the project panel will automatically select whatever file is in the 1. tab.

Additionally, it doesn't really seem to be in focus, i.e. attempting to navigate across the directory tree using the arrow keys doesn't work.