Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partial Collapse #2119

Open
alex-courtis opened this issue Apr 10, 2023 · 4 comments
Open

Partial Collapse #2119

alex-courtis opened this issue Apr 10, 2023 · 4 comments
Labels

Comments

@alex-courtis
Copy link
Member

alex-courtis commented Apr 10, 2023

#2112

Method to recursively collapse a partial tree up to the root level folder.

As per collapse_all but within one sub-tree.

Recursively collapse a node. As per open.edit on an open node however also recursively collapses contents.

@alex-courtis
Copy link
Member Author

I'm leaning towards collapse with the same param as collapse_all.

@mikehaertl
Copy link
Contributor

... collapse a partial tree up to the root level folder

I want to make sure that we talked about the same behavior.

When I have this start condition:

image

If the cursor is on folder b/ or on file b/demo it should collapse any directory below b/ including b/ itself:

image

It could be an option (e.g. collapse({parents = true})) to also collapse all parents up to the root instead:

image

@alex-courtis
Copy link
Member Author

If the cursor is on folder b/ or on file b/demo it should collapse any directory below b/ including b/ itself:

I see... that is the minimum required functionality. Updating description.

It could be an option (e.g. collapse({parents = true})) to also collapse all parents up to the root instead:

YAGNI. We can add it later if necessary.

@jensenojs
Copy link

looking forward to it(
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants