I am often having difficulties with the various org-agenda filter
settings, for creating org-agenda-custom-commands. There is not much
documentation, especially, examples for those new to for instance
regexp, and Emacs' regexp, and how these work with org's syntax.
In the following agenda-custom-command, I tried to use regexp in
regexp-filter and tag-filter, but could not succeed. I did successfully
get the skip-function to work, but I was hoping to clarify if I should
expect the other variables to work, now or in the future, and/or if you
could help me understand how to use them properly.
(org-add-agenda-custom-command
'("h" "habits"
agenda ""
((org-agenda-files '("/e/org/agendas-main.org"))
(org-agenda-skip-function
'(org-agenda-skip-entry-if 'notregexp ":STYLE:.+habit"))
(org-agenda-span 'day)
;; (org-agenda-regexp-filter-preset '(":STYLE:.+habit"))
;; (org-agenda-tag-filter-preset '("+STYLE=\"habit\""))
)
))
I have tried various permutations of the syntax, but could not make the
latter two variables work.
Leads:
- http://orgmode.org/manual/Matching-tags-and-properties.html
- which links to,
http://orgmode.org/manual/Special-agenda-views.html#x-agenda-skip-entry-regexp,
perhaps the intended solution at this time
- http://orgmode.org/worg/org-tutorials/advanced-searching.html
- http://www.emacswiki.org/emacs/RegularExpression
Thank you,
Brady