zed
zed copied to clipboard
Collapse folder in file explorer
Check for existing issues
- [X] Completed
Describe the feature
When I've big file tree, I need to close the all the opened child directories, this feature really helps when it comes to handy.
If applicable, add mockups / screenshots to help present your vision of the feature
Is this what you're talking about?
{
"context": "ProjectPanel && not_editing",
"bindings": {
"m": "project_panel::CollapseAllEntries"
}
}
Yes, @d1y
This is great, would be nice to have an option to only close the children of the folder that is currently active. So if we have the below file structure where all folders are open and Folder 1
is selected in the side panel, running a collapse command on it would only collapse Folder 1
and Folder 1.2
but would leave Folder 2
and it's children open.
Project
- Folder 1
- Folder 1.1
- file1.txt
- Folder 1.1
- Folder 2
- Folder 2.1
- file2.txt
- Folder 2.1
project_panel::CollapseAllEntries
fixes 99% of my use cases but it is nice to have the above functionality as well if possible one day 😊
I'd love to see not only having a Key bind to close the Folders, but also to have a Icon to do it.
Yeah, it's like there needs to be an option like project_panel::CollapseAllEntries
but only for the selected folder and down, so like project_panel::CollapseAllEntriesBelowSelection
or something.
Yeah, it's like there needs to be an option like
project_panel::CollapseAllEntries
but only for the selected folder and down, so likeproject_panel::CollapseAllEntriesBelowSelection
or something.
Agree with this. Having an option to be able to collapse a section using a Cmd+click
like on VsCode could be really useful.
I'd love to see not only having a Key bind to close the Folders, but also to have a Icon to do it.
+1
Yeah definitely would love to have a button to collapse my entire directory tree. Especially helpful in big monorepos where you need to navigate between workspaces frequently.
Is it possible to trigger this action from inside the editor pane? Right now I need to be focused in the LeftDock for this command to work
That would be very nice, I use it every day.
Im not sure if there's a better issue to comment on, but support for option + clicking
folders in the explorer to toggle nested folders expansion state would be an amazing quality of life improvement.
https://github.com/zed-industries/zed/assets/104145051/936d0a2b-e1fc-4687-b56d-4389ce4e9400