markdown-folder
markdown-folder copied to clipboard
Fold all current headings
How about a command for "fold all current"? Would be nice to be able to get a quick bird's eye view with one key command wherever you are...
Thanks!
Hi, and thank you very much for your suggestion! Can you elaborate a bit what "fold all current" would mean? Maybe you can achieve what you want using cycle and cycleall?
I tried those, but cycleall
was too broad and cycle
was too specific.
Given the following:
# H1
Text1
## H2A
Text2A
### H3B
text3B
### H3B (Cursor here)
text3B
### H3C
text3C
## H2B
Text2B
...I'd like to see the following result immediately upon calling the proposed "fold all current" command:
# H1
Text1
## H2A
Text2A
### H3B...
### H3B... (Cursor here)
### H3C...
## H2B
Text2B
...and with one more toggle expanding the H3's and keeping the cursor still on H3B...
(And without the command needing to be tied only to h3, as I'd like to be able to use the same command to do the same thing with h1, h2, etc., depending on the context.
Thanks for the explanation, I'll see if I can figure out a way to achieve this.
Cool---btw, if since you are apparently another fan of headings, and if you weren't already aware, there are some helpful add-ons, HeadingsMap (Firefox or Chrome) or, if you prefer, for Chrome only, HTML5 Outliner which turn headings into a table of contents.
It'd be cool to have a sidebar within Atom for such contents, but at least these add-ons work once the README is available on Github or such.