Instead of using imenu
, you can use org-goto
with the following
settings:
(setq org-goto-interface 'outline-path-completionp)
(setq org-outline-path-complete-in-steps nil)
,----[ C-h v org-goto-interface RET ]
| org-goto-interface is a variable defined in ‘org.el’.
| Its value is ‘outline-path-completionp’
| Original value was outline
|
| Documentation:
| The default interface to be used for ‘org-goto’.
| Allowed values are:
| outline The interface shows an outline of the relevant file
| and the correct heading is found by moving through
| the outline or by searching with incremental search.
| outline-path-completion Headlines in the current buffer are offered via
| completion. This is the interface also used by
| the refile command.
|
| You can customize this variable.
|
| [back]
`----
,----[ C-h v org-outline-path-complete-in-steps RET ]
| org-outline-path-complete-in-steps is a variable defined in ‘org.el’.
| Its value is nil
| Original value was t
|
| Documentation:
| Non-nil means complete the outline path in hierarchical steps.
| When Org-mode uses the refile interface to select an outline path
| (see variable ‘org-refile-use-outline-path’), the completion of
| the path can be done in a single go, or it can be done in steps down
| the headline hierarchy. Going in steps is probably the best if you
| do not use a special completion package like ‘ido’ or ‘icicles’.
| However, when using these packages, going in one step can be very
| fast, while still showing the whole path to the entry.
|
| You can customize this variable.
|
| [back]
`----
helm-org-in-buffer-headings
from thehelm
package. It lets you narrow down interactively to the desired headline, and the whole hierarchy path of the headline is used (well, the number of levels can be configured). This to me is the most efficient way to jump to a heading. Also, you can easily configure other actions besides jumping to the heading (e.g. clocking in, refiling, etc.)ivy
GitHub issue about this. The consensus seems to be to (a) useorg-goto
and change the settings to auto-complete, or (b) usecounsel-org-goto
. -- No clue whycounsel-imenu
withorg
only shows leaf nodes, but maybe this helps someone else in their web search.