-
Notifications
You must be signed in to change notification settings - Fork 69
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
Generalize wiki#toc#gather_entries #288
Comments
@saccarosium What do you think; would the above proposal work for you? |
I was thinking more of an automatic behaviour based on the main filetype, the first in the Having said that, I think that for markdown is mandatory having the option due to the infinity flavours and ways to do heading. Could make the variable an set it automatically to the filetype. |
Yes, good point. I think my proposal can still hold, except with the following addendum:
What do you think? This seems to be quite flexible to me, and if we still allow to specify the header format with |
Yes indeed I think is looking very good. |
Then I'll start working on this as soon as I get the time. |
This is fixed by @saccarosium in #295. Thanks! |
wiki#toc#gather_entries
assumes ATX headers:wiki.vim/autoload/wiki/toc.vim
Lines 153 to 156 in 0a16c4a
wiki.vim is meant to be filetype agostic, thus this should be generalized to allow other formats, as suggested by @saccarosium in #287.
Proposal: Add an option
g:wiki_toc_header_format
to allow other header formats, e.g.:One problem with using a global option is that one may want wiki.vim to work with different filetypes. Thus, it should be possible to also override the global option in any relavant commands, e.g.
WikiTocGenerate
:The text was updated successfully, but these errors were encountered: