org-sparse-tree function lists selected information with the headline structure above it.
This is useful when the meaning of org headings depends on context:
SPC m T
org-agenda function prints the headings out of context, which can make the headings incomprehensible:
SPC a o o s
Phrase: TODO (org-agenda, list all entries with keyword "TODO")
As far as I know, org-sparse-tree only works on one org file at a time. While org-agenda is derived from multiple org files.
Is there a way to display an agenda as a sparse tree? (when the agenda is derived from multiple files)
Alternatively, I could combine all my org project files into one. Is that the "org-mode way"? If not, I will customize org-mode after gaining more org-mode experience.
I am using Emacs 25.2.1 with Spacemacs, evil, and ivy on Linux.
The remainder of this question describes what I have tried so far.
I tried the
SPC a o /
Org-files matching: tasks.org Searched 5 buffers; no matches for "tasks.org"
What should be entered after the "Org-files matching" prompt?
From my ~/.spacemacs file:
(setq org-agenda-files (list "~/Documents/developer/editors/emacs/tasks_demo/proj1/notes1.org" "~/Documents/developer/editors/emacs/tasks_demo/proj1/tasks.org" "~/Documents/developer/editors/emacs/tasks_demo/proj2_per/notes2.org" "~/Documents/developer/editors/emacs/tasks_demo/proj2_per/tasks.org" "~/Documents/developer/editors/emacs/tasks_demo/tasks.org" ))
This google search found none: "org-occur-in-agenda-files" "Org-files matching"
Search all the org files with org-agenda, and if a heading needs context, ENT on the heading, which opens the heading in the same window.
SPC b b (ivy-switch-buffer) *Org Agenda* returns window to the agenda.
Is there a faster way to jump back to agenda?
C-c & (org-mark-ring-goto) does not jump back to agenda.
Search all the org files with org-agenda, and if a heading needs context, mouse-3 on the heading, which opens the heading in another window.
But if another window is already open, that window's buffer is displaced.
Is there a way to open the agenda heading in a new window?