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.97k stars 2.83k forks source link

[tree] root files should be same indentation as root directories #4755

Closed lukeed closed 2 months ago

lukeed commented 1 year ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Root-level files should start at the same indentation level as root-level directories.

Currently (Zed 0.84.4), they're indented 1 level, which makes them appear to be part of the last directory's contents. This is shown in the second screenshot, where it's unclear where util's contents ends and the root-level files begin

Environment

Zed: v0.84.4 (stable) OS: macOS 12.2.1 Memory: 64 GiB Architecture: aarch64

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

Screen Shot 2023-05-08 at 12 34 48 PM Screen Shot 2023-05-08 at 12 35 48 PM

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

alexphl commented 1 year ago

The issue is that file names are aligned against the folder names, which makes them look indented since we don't have file icons. IMO easy fix is to align filename text against the folder arrows unless file icons are introduced.

This is really messing with my ability to navigate large projects. The indentation difference on that second screenshot between files inside and outside the utils folder is only one character wide - it's impossible to differentiate in practice.

JosephTLyons commented 2 months ago

I'm not able to reproduce this in current Zed, so I'm going to close this issue out. If you run into this again, feel free to open a new issue!

SCR-20240728-czsm