I'd like to find a way to jump to a location in an org-mode file while automatically unfolding only the heading at the location I'm jumping to and all its parent headings (but not any sibling headings).
For example, if I have this org-mode file:
* A
** AA
*** AAA
** AB
*** ABA
* B
** BA
*** BAA
** BB
*** BBA
* C
** CA
*** CAA
** CB
*** CBA
and I use evil-set-marker
to mark the location at BBA
, and then fold up all the headings, the file will now be displayed in org-mode as:
* A...
* B...
* C...
and if I now evil-goto-mark
with the intention of going back to BBA
, emacs will only place point on B
without unfolding any of the headings, so the way the file is displayed remains unchanged.
Instead, I'd like emacs to unfold just BBA
and all of its parent headings (but no sibling headings) like so:
* A...
* B
** BA...
** BB
*** BBA
* C...
and place point on the exact location I marked at BBA
.
C-c C-r
isorg-reveal
which shows the hierachy above with out siblings.C-u C-c C-r
includes siblings too. More control is availably viaorg-show-context
org-reveal
does not seem to solve my issue, or at least I can't figure out how to apply it to my problem. Please see my comments in reply to Heikki's answer below.C-u C-c C-r
gives in this situation.