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

FR: Collapse all branches #19

Open
aspiers opened this issue Apr 6, 2021 · 7 comments
Open

FR: Collapse all branches #19

aspiers opened this issue Apr 6, 2021 · 7 comments
Labels
enhancement New feature or request

Comments

@aspiers
Copy link

aspiers commented Apr 6, 2021

Thanks for this great extension. When opening a large mind-map, it is hard to navigate because it is so huge. It would be really helpful if there was a way to collapse all branches in one go, and even better if this was optionally done when first rendering the map.

@CleoQc
Copy link

CleoQc commented Mar 16, 2022

Yes please! I have a pretty large mindmap too, and I'm trying to figure out if this has been implemented?

@gera2ld gera2ld added the enhancement New feature or request label Mar 18, 2022
@harrybou
Copy link

harrybou commented Jun 9, 2022

Absolutely essential, I reckon. Would be nice to be able to specify the level to open to. Also, if root level could be level 0 rather than at the top of level 1.

@harrybou
Copy link

harrybou commented Jun 9, 2022

One other thing. It would also be nice if when you open a level, only that level opens, not all higher levels For example if you are on level two, and click on a 'dot' only level three opens, not level three to 'x'.

@jawspeak
Copy link

jawspeak commented Nov 23, 2022

Curious the usability how folks would want this, because I'm interested also in this.

  1. One idea is to try and listen to command-shift-p commands to fold / unfold similar to how you can in code, and keep the markmind map in sync with the code folding level. OR, have another set of shortcut commands for just the mindmap:

image

image

  1. Another idea is to have buttons in the markmap control in the bottom right of the window

image

  1. Is there another user experience folks would be interested in?

I'm interested in trying a PR of this, just seeking some feedback @markmap of the best UX (and also pointers for implementation). :-)

@gera2ld
Copy link
Member

gera2ld commented Nov 23, 2022

image

This button is used to fold/unfold the next node and its children recursively. Maybe it was a bad UX 😂

@jawspeak
Copy link

Ohhh interesting, thank you so much. I don't think I figured out how to use that when I tried (macOS Chrome) in https://markmap.js.org/repl Clicking that nothing happened. I'm not sure where the state of the current node is indicated to recursively toggle from.

@jawspeak
Copy link

I implemented a keyboard level version of this in another library today which possibly we could share inspiration from / etc. lynchjames/obsidian-mind-map#103

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

No branches or pull requests

5 participants