For my global TODO list, I am showing breadcrumbs as suggested here :
(concat \"[ \"(org-format-outline-path (org-get-outline-path)) \" ]\") ")
to produce following:
I would like to show only the second level of project breadcrumb. So in this case, I would only display [Project A]
. I think if I can make a function that can extract the second level, I just need to prepend with %?
so that [Tasks]
does not appear for Tasks, but only project names would appear for Projects. What would be an ideal way of extracting the second level?
All you have to do to get the second element of
(org-get-outline-path)
is to callnth
.The second element is
(nth 1 LIST)
. Replace(org-get-outline-path)
with(list (nth 1 (org-get-outline-path)))
(we uselist
because that's whatorg-format-outline-path
expects).