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
50.82k stars 3.15k forks source link

file picker width can be too small to disambiguate files #16018

Open thorbenk opened 3 months ago

thorbenk commented 3 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

In my project, I have a file structure likes this: image

Now, if I search for a file impl, the file picker is not wide enough to disambiguate my search: image

I guess my file tree is a bit weird, so I would be happy to just give a fixed percentage width for the file picker in my zed config :sweat_smile:

Environment

Linux.

0x2CA commented 3 months ago

Wider doesn't solve the problem, next time it may need to be wider, ad infinitum The real solution to the problem is the need for intelligent path display, where the same prefixes can be omitted from the indentation. There are settings in the telescope for this.