bmag / imenu-list

Emacs plugin to show the current buffer's imenu entries in a separate buffer
GNU General Public License v3.0
324 stars 27 forks source link

why only 2 levels in orgmode? #47

Closed VladimirAlexiev closed 5 years ago

VladimirAlexiev commented 5 years ago

I have an orgmode file with toc:5 H:5 and 4 levels of headings. When I cycle visibility at top of the buffer, I see all levels of headings.

However, imenu-list shows only 2 levels. It doesn't show + for level 2 headings with subheadings. image

bmag commented 5 years ago

imenu-list shows the same index that imenu produces. When using M-x imenu, can you jump to a level-3 header (e.g. LinkedLifeData)? If not, then the problem is with the indexing function used by imenu.

After a short research, I found that the variable org-imenu-depth controls the depth of the index. By default it is set to 2, so you need to increase it in your configuration. (e.g. via customize interface)