By pressing [Enter] on an entry in
org-agenda, the sparse tree containing the entry shows up.
org-show-context-detail controls how to see such a sparse tree (docs). Pairs "context -> detail-level" are setup on it. As I understand from the docs, the context "agenda" is the one that controls the jump from the agenda view to the tree.
I tried setting all the detail-level values (minimal, local, ancestors, lineage, tree, canonical) and none of them seems to do what I need (
minimal gets close, though):
Given a tree like this;
* A ** A.1 ** A.2 * B ** B.1 ** B.2 *** B.2.i *** B.2.ii * C ** C.1 *** C.1.i
Setting the detail-level to
minimal, if I go from the agenda to the tree by pressing [Enter] or Tab in an entry that contains
B.2.ii, I get:
* A... * B ** B.2... *** B.2.ii * C...
I would like to hide all siblings of first level headlines, to get something like:
* B ** B.2 *** B.2.ii
Or maybe show just the immediate parent of the matched headline:
** B.2 *** B.2.ii
Is there a way to accomplish these two desired views?
I saw this entry Reveal entry's parents recursively, but not siblings here, but I couldn't make an analogy to my situation (which, as I understand, would be setting up "canonical" detail-level for the agenda context.)