* match by property in agenda view
@ 2017-09-07 17:55 Xebar Saram
2017-09-09 22:33 ` Matt Lundin
0 siblings, 1 reply; 2+ messages in thread
From: Xebar Saram @ 2017-09-07 17:55 UTC (permalink / raw)
To: org mode
[-- Attachment #1: Type: text/plain, Size: 399 bytes --]
Hi all
i Have this item in a property drawer:
:people: %^{people?|-|allan|bob|joel}
now i have this custom agenda view defined
(add-to-list 'org-agenda-custom-commands
'("sk" "wtd"
tags "people=\"allan\""
((org-agenda-sorting-strategy '(priority-down effort-down)))
))
yet when i launch it it never finds any items which have a :people: allan
entry in the drawer
what am i missing?
thx
Z
[-- Attachment #2: Type: text/html, Size: 753 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: match by property in agenda view
2017-09-07 17:55 match by property in agenda view Xebar Saram
@ 2017-09-09 22:33 ` Matt Lundin
0 siblings, 0 replies; 2+ messages in thread
From: Matt Lundin @ 2017-09-09 22:33 UTC (permalink / raw)
To: Xebar Saram; +Cc: org mode
Xebar Saram <zeltakc@gmail.com> writes:
> Hi all
>
> i Have this item in a property drawer:
>
> :people: %^{people?|-|allan|bob|joel}
>
> now i have this custom agenda view defined
>
> (add-to-list 'org-agenda-custom-commands
> '("sk" "wtd"
> tags "people=\"allan\""
> ((org-agenda-sorting-strategy '(priority-down effort-down)))
> ))
>
> yet when i launch it it never finds any items which have a :people:
> allan entry in the drawer
I believe you need to use regexp syntax. The above command will find
only find property values that exactly match "allan". The following
command will find property values containing "allan".
(add-to-list 'org-agenda-custom-commands
'("sk" "wtd"
tags "people={allan}"
((org-agenda-sorting-strategy '(priority-down effort-down)))
))
Best,
Matt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-09-09 22:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-07 17:55 match by property in agenda view Xebar Saram
2017-09-09 22:33 ` Matt Lundin
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.