Chapter 10: Agenda views
The type of comparison will depend on how the comparison value is written:
If the comparison value is a plain number, a numerical comparison is done, and the
allowed operators are ‘<’, ‘=’, ‘>’, ‘<=’, ‘>=’, and ‘<>’.
If the comparison value is enclosed in double-quotes, a string comparison is done, and
the same operators are allowed.
If the comparison value is enclosed in double-quotes and angular brackets (like
‘DEADLINE<="<2008-12-24 18:30>"’), both values are assumed to be date/time
speciﬁcations in the standard Org way, and the comparison will be done accordingly.
Special values that will be recognized are "<now>" for now (including time), and
"<today>", and "<tomorrow>" for these days at 00:00 hours, i.e., without a time
speciﬁcation. Also strings like "<+5d>" or "<-2m>" with units d, w, m, and y for day,
week, month, and year, respectively, can be used.
If the comparison value is enclosed in curly braces, a regexp match is performed, with
‘=’ meaning that the regexp matches the property value, and ‘<>’ meaning that it does
So the search string in the example ﬁnds entries tagged ‘:work:’ but not ‘:boss:’, which
also have a priority value ‘A’, a ‘:Coffee:’ property with the value ‘unlimited’, an ‘Effort’
property that is numerically smaller than 2, a ‘:With:’ property that is matched by the
regular expression ‘Sarah\|Denny’, and that are scheduled on or after October 11, 2008.
You can conﬁgure Org mode to use property inheritance during asearch, but beware that
this can slow down searches considerably. SeeSection7.4[Propertyinheritance],page67,
For backward compatibility, andalso for typingspeed, there is also a diﬀerent way to test
TODO states in a search. For this, terminate the tags/property part of the search string
(which may include several terms connected with ‘|’) with a ‘/’ and then specify a Boolean
expression just for TODO keywords. The syntax is then similar to that for tags, but should
be applied with care: for example, a positive selection on several TODO keywords cannot
meaningfully be combined with boolean AND. However, negative selection combined with
AND can be meaningful. To make sure that only lines are checked that actually have any
TODO keyword(resulting in a speed-up), use C-c a M, or equivalently start the TODO part
after the slash with ‘!’. Using C-c a M or ‘/!’ will not match TODO keywords in a DONE
Same as ‘work+TODO="WAITING"’
Select ‘:work:’-tagged TODO lines that are neither ‘WAITING’ nor ‘NEXT’
Select ‘:work:’-tagged TODO lines that are either ‘WAITING’ or ‘NEXT’.
10.3.4 Timeline for a single ﬁle
The timeline summarizes alltime-stamped items froma single Org mode ﬁle in a time-sorted
view. The main purpose of this command is to give an overview over events in a project.