github-code-folding icon indicating copy to clipboard operation
github-code-folding copied to clipboard

Feature request: expand/collapse all folds

Open daveyarwood opened this issue 7 years ago • 2 comments

Hi, thanks for the great plugin! I use it all the time.

One thing I keep finding myself wishing I could do, especially on large files, is click a button that will collapse every fold so I can get a "big picture" view of the file. Then I could click the button again to expand all of the folds.

daveyarwood avatar Oct 12 '17 19:10 daveyarwood

In the console:

for (x of $$('.collapser')) x.click()

Tatsh avatar Sep 10 '21 18:09 Tatsh

For v0.3.3, it is now:-

for (x of $$('.gcf-collapser')) x.click()

It would still be useful to have this as a shortcut.

prerakmody avatar Oct 02 '22 14:10 prerakmody