zed icon indicating copy to clipboard operation
zed copied to clipboard

Project panel horizontal scroll

Open NicolayD opened this issue 1 year ago • 6 comments

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

NicolayD avatar Jan 29 '24 18:01 NicolayD

As per https://github.com/zed-industries/zed/issues/5550 it is a design decision to make it unscrollable

timfjord avatar Jan 30 '24 13:01 timfjord

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.

NicolayD avatar Jan 31 '24 13:01 NicolayD

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.

timfjord avatar Jan 31 '24 14:01 timfjord

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.

tausifcreates avatar Feb 09 '24 05:02 tausifcreates

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)

tausifcreates avatar Feb 10 '24 20:02 tausifcreates

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 : image

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.

httyd98 avatar Apr 21 '24 18:04 httyd98

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
  },

imageimage

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 avatar Jul 01 '24 17:07 notpeter

@notpeter

image

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.

httyd98 avatar Jul 04 '24 10:07 httyd98

@notpeter

image

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

Eigilak avatar Aug 09 '24 19:08 Eigilak