zed
zed copied to clipboard
Project panel horizontal scroll
Check for existing issues
- [X] Completed
Describe the bug / provide steps to reproduce it
The left dock doesn't seem to have a horizontal scroll and the names of nested files are hidden. Resizing manually works, but it would be a welcome addition to have a horizontal scroll.
Environment
Zed: v0.119.20 (Zed) OS: macOS Sonoma 14.3 Memory: 8 GiB Architecture: aarch64, Apple M1
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.
If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.
No response
As per https://github.com/zed-industries/zed/issues/5550 it is a design decision to make it unscrollable
As per #5550 it is a design decision to make it unscrollable
It's still very strange to use - even at only 5 or 6 levels deeply nested directories filenames start to get hidden and it's not very comfortable to have to manually expand it and shrink it. For example, in Sublime it is scrollable and in my experience has worked without issues.
I think it has to do with how renaming items works in Zed. In Zed, you rename files directly in the Project Panel whereas in ST there is a popup located outside of the sidebar.
I think it has to do with how renaming items works in Zed.
If the file names are long or file structure is deeply nested, I need to resize the panel often to view the files. Which is not deal breaker but annoying for me and other people like op. Also, aside from sublime, Intellij based editors have this ability.
To tackle the problem of renaming the file in place (not a popup like Intellij), we could possibly lock the x-scroll when a file is being edited in Zed. As code is read more than it's written, it would make some sense to optimize for reading comfort cause files are renamed minuscule amount of times than it is read 🙂 (context: https://github.com/zed-industries/zed/issues/5550#issuecomment-1908681174)
I have the same problem too. When you have many folders and the file names are long it is really frustrating not to be able to scroll the file view horizontally.
An example :
Zed is really good at many things, keeping the file view unscrollable would be a really bad lapse in style. I hope that the slider will be implemented in the future, or at least give the possibility to activate it from the settings if someone wants to activate it.
A potential workaround: Zed has a settings option for the project panel to folder/collapse nested folders which only contain a single directory:
"project_panel": {
"auto_fold_dirs": true
},
In your example this would save you three levels of indentation as java/com/estinguo/app would show at one level. (Note you have to reload Zed for this to take effect)
@notpeter
This feature is useful in very few specific cases where you have a list of folders that contain only one internal folder in succession. It's practically like not having it. However, the problem remains that I cannot scroll horizontally in the list of files and above all the vertical guides that mark the beginning and end of the folder contents are missing. In my opinion, these are now necessary features to work well and without frustration. At the moment these two are the main features that prevent me from using zed as a code editor.
@notpeter
This feature is useful in very few specific cases where you have a list of folders that contain only one internal folder in succession. It's practically like not having it. However, the problem remains that I cannot scroll horizontally in the list of files and above all the vertical guides that mark the beginning and end of the folder contents are missing. In my opinion, these are now necessary features to work well and without frustration. At the moment these two are the main features that prevent me from using zed as a code editor.
SAAAAAAME
