Repository navigation
Project panel: hide the expand chevron on empty folders #66749
epenabella
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Body
What are you proposing?
An opt-in setting,
project_panel.hide_empty_folder_chevrons(defaultfalse, so nothing changes unless you turn it on), that leaves the expand chevron off empty folders in the project panel.Why does this matter?
When
folder_indicatorischevronorboth, every folder in the project panel gets a chevron, even empty ones. The only way to tell a folder is empty is to expand it.Are there any examples or context?
JetBrains IDEs leave the expand handle off empty folders, and I miss that when moving between RustRover and Zed.
Before / after (One Light,
folder_indicator: "both"):empty_dirloses its chevron, the other folders keep theirs.Possible approach
hide_gitignoreandhide_hidden, so a folder holding only hidden files counts as empty when those are hidden.chevron_icons, so a theme can give the JetBrains-style+/−look.I've built and tested this, with unit tests and a manual run in light and dark themes, and opened a PR: #65672. Is this something you'd take?
All reactions