Is it possible to show top level heading ("project" heading) in the agenda?

(setq org-agenda-custom-commands
  '(("g" todo "WAITING" nil)
("n" todo "NEXT" nil)
("i" todo "IN-PROGRESS" nil)
("w" "Agenda + In-progress + Next Actions @work"
 ((agenda) (todo "IN-PROGRESS") (todo "NEXT"))
 ((org-agenda-tag-filter-preset '("+@work"))))
("d" "Agenda + In-progress + Next Actions"
 ((agenda) (todo "IN-PROGRESS") (todo "NEXT")))))

Projects file is part of Getting Things Done and I have this in my .emacs:

(setq org-agenda-files '("~/Dropbox/gtd/inbox.org"

Projects file contains headings for each project and subtrees of TODO lists. I guess I can just add a tag to each heading and filter by that tag but each heading will just appear as a TODO entry rather than a heading in the agenda.

  • The three main choices are org-search-view, org-tags-view, and org-agenda-list. Here is a link to the org-mode manual regarding advanced searching: orgmode.org/worg/org-tutorials/advanced-searching.html . It is unclear from the question whether the project is defined in your org-todo-keywords, and it is unknown whether you tried to search for that keyword; or, whether your have a particular tag in the heading containing your project that you could search for ...; or, .... At the present, we really have no idea what the project is in the context of this question ...
    – lawlist
    Apr 22 '18 at 14:52

The level of a heading is stored in the special LEVEL property. You can search for like any other property. To restrict to a particular file, you can locally set org-agenda-files for that agenda command. For example:

(setq org-agenda-custom-commands
  '(("1" "Level 1 project headings" 
     ((org-agenda-files '("~/Dropbox/gtd/projects.org")))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.