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
49.58k stars 3.04k forks source link

Extend breadcrumbs with project files navigation menu #9996

Open mayamika opened 7 months ago

mayamika commented 7 months ago

Check for existing issues

Describe the feature

A navigation bar like ClLon's https://www.jetbrains.com/help/clion/menus-and-toolbars.html

It allows to quickly navigate by clicking on any level of file hierarchy and picking the dir/file from dropdown, thus incrementally selecting the file. If dir is selected, then it shows its content in different dropdown, so at each step you only see one dir's contents.

Using default project tree is pretty annoying in large projects.

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

No response

druskus20 commented 2 months ago

A core part of my navigation workflow is breadcrumbs. I use them as a replacement for a file tree. It would be a critical addition for me, I generally like VSCode's UI. On Vim there is https://github.com/Bekaboo/dropbar.nvim. I'm sure CLion has a similar approach.

I control them with my keyboard, by mapping movements (hwjk, ctrl+hwjk) in both the popups and the breadcrumbs bar like this:

https://github.com/user-attachments/assets/32713e5c-ae60-4759-9655-6c22583b024a