mzlogin / vim-markdown-toc

A vim 7.4+ plugin to generate table of contents for Markdown files.
http://www.vim.org/scripts/script.php?script_id=5460
MIT License
609 stars 59 forks source link

Add min/max levels to TOC, make links in TOC optional #58

Closed ndaman closed 3 years ago

ndaman commented 5 years ago

Defined three new global variables to govern new options

g:vmt_link is boolean, when true (default) the TOC generates links as before, when false only the header is listed in the toc with no link

g:vmt_min_level and g:vmt_max_level define the minimum and maximum header levels to display in the toc. If you have subheadings that you do not wish displayed in the TOC you can set these options accordingly.

reasonablecow commented 3 years ago

Hi @mzlogin and @ndaman, can I ask you what is the status of this request? I may have missed something, I see the project is active yet I did not found any comment about this feature. Thanks for your response.

ndaman commented 3 years ago

I don't think this PR was ever merged, so I made my own fork with it implemented (it was a very small change).

reasonablecow commented 3 years ago

That is pitty, anyway thanks for the reply, I will probably use your solution as soon as I will need it again.

mzlogin commented 3 years ago

@ndaman @langer-jaros I'm sorry I didn't process this Pull Request in time. I'll review it now.

mzlogin commented 3 years ago

Merged, thx! @ndaman @langer-jaros