-
Notifications
You must be signed in to change notification settings - Fork 10
added folding #6
base: master
Are you sure you want to change the base?
Conversation
Please update the readme to include installation of this and to document the setting. |
ok, I did update the README.ascd and also included folding for other section formats. |
No change for the last month :-( Can you please specify anything that is missing to process this pull request? |
No, but I don't use Vim, so I can't test your pull request, it would help if someone else tried it and said it worked for them. In the longer term if someone who uses Vim and had an interest (and ability) stepped forward to review and guide the Asciidoc Vim support that would give it much more life. |
Thanks for the fast reply. In the longer term I can take over the vim part (as I am a daily user of this editor and have no problems programming it). But I should not be the person who reviews my own pull request (of course, it is great ;-)). On the other hand: only files are added and the folding must be enabled with an additional configuration entry. So the change should not do any harm. At least that was my intention :-) |
Hello. Also, have you thought about adding folding for another elements, like titles or blocks? |
Hi 1094, it would be great, if you can review my changes, so they get upstream :-) Maybe I can also add the folding of titles and blocks. Which syntax elements do you mean? I can augment the script to look for additional patterns. Kind regards, |
Okay. |
As far additional elements, I mean lines that start with
Nested:
Opened (I'm not sure if line breaks go in or out of the fold, so I'm not entirely consistant):
Is something like that possible? |
Here is a sample of the text I'm testing the folds on, right now it only contains 2 elements: sections (
When I fold this I expect to see the following:
What I am seeing is:
Which is the intended fold? |
Hi 1094, I added a new commit that also supports first level sections (parts) folding and the folding of code parts. The folding of tables and terms is tricky because there is no clear end indicator. So I do not think, that I can implement that. I'm blocked the next two weeks, so please have patience with me if I do not react. |
I have added your branch to my In this case, specifically, any line that starts with either a Also, I understand about being busy. I'll use the two weeks to learn more about vim scripting and see if I can't be of more help. |
The change enables optional folding in vim for setext-like section headers.
Like the default markdown style it can be enabled by setting g:asciidoc_folding