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

Fold all current headings #16

Open
brettz9 opened this issue Mar 28, 2016 · 5 comments
Open

Fold all current headings #16

brettz9 opened this issue Mar 28, 2016 · 5 comments

Comments

@brettz9
Copy link

brettz9 commented Mar 28, 2016

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!

@melke
Copy link
Collaborator

melke commented Apr 2, 2016

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?

@brettz9
Copy link
Author

brettz9 commented Apr 2, 2016

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...

@brettz9
Copy link
Author

brettz9 commented Apr 2, 2016

(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.

@melke
Copy link
Collaborator

melke commented Apr 3, 2016

Thanks for the explanation, I'll see if I can figure out a way to achieve this.

@brettz9
Copy link
Author

brettz9 commented Apr 3, 2016

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.

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

No branches or pull requests

2 participants