* agenda view tags filtering
@ 2010-08-16 18:17 julien cubizolles
2010-08-16 18:28 ` Bastien
0 siblings, 1 reply; 3+ messages in thread
From: julien cubizolles @ 2010-08-16 18:17 UTC (permalink / raw)
To: emacs-orgmode
I'd like to filter the items displayed in agenda view, leaving only
those with a given tag. Is that possible ?
Julien.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: agenda view tags filtering
2010-08-16 18:17 agenda view tags filtering julien cubizolles
@ 2010-08-16 18:28 ` Bastien
[not found] ` <1281986353.2342.60.camel@localhost>
0 siblings, 1 reply; 3+ messages in thread
From: Bastien @ 2010-08-16 18:28 UTC (permalink / raw)
To: julien cubizolles; +Cc: emacs-orgmode
julien cubizolles <j.cubizolles@free.fr> writes:
> I'd like to filter the items displayed in agenda view, leaving only
> those with a given tag. Is that possible ?
Yes, hit `/' in the agenda view.
See the "Secondary filtering and query editing" section of the manual.
--
Bastien
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: agenda view tags filtering
[not found] ` <87aaomxqdt.fsf@gnu.org>
@ 2010-08-16 20:40 ` julien cubizolles
0 siblings, 0 replies; 3+ messages in thread
From: julien cubizolles @ 2010-08-16 20:40 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
Le lundi 16 août 2010 à 22:18 +0200, Bastien a écrit :
> I quickly checked the structure -- the `org-agenda-filter-preset
> variable should be inside another pair of parentheses.
>
> ,----
> | (setq org-agenda-custom-commands
> | (quote (("t" "TEST"
> | ((agenda ""
> | ((org-agenda-skip-function
> | (lambda ()
> | (let* ((ts (org-entry-get nil "TIMESTAMP")))
> | (if (or (not ts) (equal ts ""))
> | (progn (outline-next-heading) (point))))))))
> | (tags-todo "classe")
> | (tags-todo "labo")
> | (tags-todo "@lycée-classe-labo")
> | )
> | ((org-agenda-filter-preset quote ("+lycée")))
> | ))))
> `----
>
> (Not tested.)
It works thanks, I also add to replace "quote" by a "'". The final
working version is then :
,----
|
| (setq org-agenda-custom-commands
| (quote (("t" "TEST"
| ((agenda ""
| ((org-agenda-skip-function
| (lambda ()
| (let* ((ts (org-entry-get nil "TIMESTAMP")))
| (if (or (not ts) (equal ts ""))
| (progn (outline-next-heading) (point))))))))
| (tags-todo "classe")
| (tags-todo "labo")
| (tags-todo "@lycée-classe-labo")
| )
| ((org-agenda-filter-preset '("+lycée")))
| ))))
`----
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-08-16 20:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-16 18:17 agenda view tags filtering julien cubizolles
2010-08-16 18:28 ` Bastien
[not found] ` <1281986353.2342.60.camel@localhost>
[not found] ` <87r5hy9wh1.fsf@altern.org>
[not found] ` <1281989422.2342.72.camel@localhost>
[not found] ` <87aaomxqdt.fsf@gnu.org>
2010-08-16 20:40 ` julien cubizolles
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).