Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

How to collapse directories under current highlighted directory? #3126

Unanswered
itsramiel asked this question in Q&A
Discussion options

Hi,

I would like to be able to collapse all directories under the current highlighted directory for a cleaner view after having multiple nested directories open. I know there is a collapse all command but I would be in a directory deep and would lose my location.

How can I accomplish my desired actions?

You must be logged in to vote

Replies: 1 comment · 1 reply

Comment options

Unfortunately there is no -api for this, however it it would be a useful feature.

It could be tree.collapse_all({node}, {keep_buffers}), mirroring tree.expand_all({node})

Please raise a feature request.

As usual, pull requests are most gratefully appreciated, see CONTRIBUTING.md

You must be logged in to vote
1 reply
@itsramiel
Comment options

itsramiel May 16, 2025
Collaborator Author

Feature request created. Would love to create a pr if I have the time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.