emacs org mode, search only headers

If you have ivy installed, you can use counsel-org-goto to search headings in the current buffer or counsel-org-goto-all to search the headings in all open org-mode buffers.

It's a good option if you don't want to install the other things that come with worf.


If you don't want to rely on external packages, org, in fact, already offers this capability: the function is org-goto.

If you want it to behave in a way similar to helm-org-in-buffer-headings, you have to set org-goto-interface to outline-path-completion, for instance by adding to your init file:

(setq org-goto-interface (quote outline-path-completion))

worf-goto from worf can do this, so can helm-org-in-buffer-headings from helm.

worf-goto actually uses helm as a back end. In addition to helm-org-in-buffer-headings, you get:

  • headings are colored in the same way as in the original buffer
  • you can select all headings with the same level using the appropriate digit