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]
`----