Is there a way to display an agenda (like 'C-a a' does) but have it limited to items that have a particular tag? (E.g., so I can see only '@WORK' items when at work.) thanks, john. -- But Calvin is no kind and loving god! He's one of the old gods! He demands sacrifice! -- Calvin
John SJ Anderson <genehack@genehack.org> writes:
> Is there a way to display an agenda (like 'C-a a' does) but have it
> limited to items that have a particular tag? (E.g., so I can see only
> '@WORK' items when at work.)
Either use your agenda and use / to limit the view to what you want.
Or create a custom agenda command: I have something like this:
(setq org-agenda-custom-commands
'(("f" "Agenda without Items tagged xyz"
((agenda ""))
((org-agenda-show-log nil)
(org-agenda-ndays 1)
(org-agenda-log-mode-items '(state))
(org-agenda-skip-function '(org-agenda-skip-entry-if 'regexp ":XYZ:"))))
;; other commands here
("d" "Agenda only Items tagged xyz"
((agenda ""))
((org-agenda-show-log nil)
(org-agenda-ndays 1)
(org-agenda-log-mode-items '(state))
(org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp ":XYZ:"))))
;; other commands here
("w" todo "WAITING")
("g" todo "STARTED")
))
hth
memnon
John SJ Anderson <genehack@genehack.org> writes: > Is there a way to display an agenda (like 'C-a a' does) but have it > limited to items that have a particular tag? (E.g., so I can see only > '@WORK' items when at work.) The following FAQs explain how to do this: http://orgmode.org/worg/org-faq.php#limit-agenda-with-tag-filtering http://orgmode.org/worg/org-faq.php#limit-agenda-with-category-match - Matt
Memnon Anon <gegendosenfleisch@gmail.com> writes:
> John SJ Anderson <genehack@genehack.org> writes:
>
>> Is there a way to display an agenda (like 'C-a a' does) but have it
>> limited to items that have a particular tag? (E.g., so I can see only
>> '@WORK' items when at work.)
>
> Either use your agenda and use / to limit the view to what you want.
> Or create a custom agenda command: I have something like this:
I couldn't get the custom-commands code you posted to work, but the
'C-c a a / TAG' thing you and Matthew both pointed out is exactly what
I was looking for -- thanks to both of you.
chrs,
john.
--
"I believe in getting into hot water; it keeps you clean."
- G. K. Chesterton
[-- Attachment #1.1: Type: text/plain, Size: 1637 bytes --] For me the the custom-commands did not work eitther. It seems that somehow iy does not take the inherited tags. I tried to avoid appearing the :WEEKLY: tags in another agenda view but it did not worked I tried ("li" "eliminating WEEKLY tags" agenda "" ((org-agenda-ndays 7) ;; agenda will start in week view (org-agenda-repeating-timestamp-show-all t) ;; ensures that repeating events appear on all relevant dates (org-agenda-log-mode-items '(state)) (org-agenda-skip-function '(org-agenda-skip-entry-if 'regexp ":WEEKLY:") ) ) ) Daniel 2009/7/29 John SJ Anderson <genehack@genehack.org> > Memnon Anon <gegendosenfleisch@gmail.com> writes: > > > John SJ Anderson <genehack@genehack.org> writes: > > > >> Is there a way to display an agenda (like 'C-a a' does) but have it > >> limited to items that have a particular tag? (E.g., so I can see only > >> '@WORK' items when at work.) > > > > Either use your agenda and use / to limit the view to what you want. > > Or create a custom agenda command: I have something like this: > > I couldn't get the custom-commands code you posted to work, but the > 'C-c a a / TAG' thing you and Matthew both pointed out is exactly what > I was looking for -- thanks to both of you. > > chrs, > john. > -- > "I believe in getting into hot water; it keeps you clean." > - G. K. Chesterton > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > [-- Attachment #1.2: Type: text/html, Size: 2507 bytes --] [-- Attachment #2: Type: text/plain, Size: 204 bytes --] _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode