nvim-orgmode / orgmode

Orgmode clone written in Lua for Neovim 0.9+.
https://nvim-orgmode.github.io/
MIT License
3.04k stars 134 forks source link

Table of Contents using :toc: #39

Closed ashincoder closed 3 years ago

ashincoder commented 3 years ago

Does this feature exist in Emacs orgmode? Yes.

If answer to first question is "Yes", please provide the link to the orgmode manual or any documentation related to the feature

https://orgmode.org/guide/Table-of-Contents.html

kristijanhusak commented 3 years ago

This setting is for exporting. As far as I know there's no way to generate TOC as part of org file.

I'm working on export feature in another branch, and this option should work because export is done via emacs.

kristijanhusak commented 3 years ago

Exporting is not merged into master. From my tests, setting #+OPTIONS properly works.

To do export, check https://github.com/kristijanhusak/orgmode.nvim/blob/master/DOCS.md#org_export