Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

Add sections folding #7

Closed
antonmoiseev opened this issue Feb 5, 2015 · 9 comments
Closed

Add sections folding #7

antonmoiseev opened this issue Feb 5, 2015 · 9 comments

Comments

@antonmoiseev
Copy link
Contributor

No description provided.

@nicorikken
Copy link
Contributor

Certainly an interesting idea. To me this seems valuable not just for sections, but also for codeblocks and other grouped lines.

@laurel
Copy link

laurel commented Apr 1, 2016

👍

@nicorikken
Copy link
Contributor

Apparently Atom currently only supports folding based on indentation, rather than any form of grammar-defined folding. See this forum discussion: https://discuss.atom.io/t/how-to-modify-javascript-grammar-to-support-indent-level-folding/19039 and this original issue description: atom/first-mate#48
One of the ways to deal with this issue, might be to introduce a dedicated folder package, as has been done for Markdown: https://atom.io/packages/markdown-folder I'd still prefer some grammar-based approach though, being available for all language to use, but that would require work from upstream Atom.

@mojavelinux
Copy link
Member

This would truly be amazing. Folding has evaded us in the AsciiDoc world, even in VIM. It would be a killer feature for the Atom editor.

Too bad Atom doesn't do folding based on the grammar alone. Seems like a reasonable thing to support.

@mojavelinux
Copy link
Member

Being able to fold the attribute entries in the document header would be an absolute game changer. That seems like the simplest place to start.

@mojavelinux
Copy link
Member

Interesting to note that folding already works for block comments and consecutive line comments.

@nicorikken
Copy link
Contributor

Last time I checked folding was based on indentation. Has anything changed?

@mojavelinux
Copy link
Member

Seems like it. Or perhaps comments get special treatment. I just noticed it when I was editing.

@mojavelinux
Copy link
Member

Moved to asciidoctor/atom-asciidoc-assistant#10.

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

No branches or pull requests

5 participants