docs/manual/guide/07-agenda.org
607 lines · 53372 bytes
1#+TITLE: The agenda
2#+DESCRIPTION: The agenda window, its rows, calendar events, the TODO list, tag and property matches, saved views, filters, reminders and the board.
3#+LEDE: The agenda collects dated entries and TODO items from your agenda files into one list you can act on.
4
5* Opening the agenda
6
7On the Mac the agenda is its own window. Open it with Window ▸ Agenda, or with the key for your preset:
8
9| Preset | Key |
10|--------+--------------------------------------|
11| Mac | =⇧⌘A= |
12| Emacs | =C-c a= or =⇧⌘A= |
13| Doom | =SPC o a= (normal state), =C-c a= or =⇧⌘A= |
14
15With =org-use-speed-commands= on, =v= at the start of a heading line opens it too (see [[file:03-keys.org][Keys]]).
16
17The key opens the window directly. There is no =org-agenda= dispatcher; you choose what the window shows from the view menu at the left of its toolbar (see [[*Views][Views]]).
18
19Opening a timestamp with =org-open-at-point= (=C-c C-o= in the Emacs preset) opens the agenda on that timestamp's day, or on every day of a date range.
20
21On iOS the agenda is the first tab. See [[*The agenda on iOS][The agenda on iOS]].
22
23* Agenda files
24
25orgstar has no =org-agenda-files= list. The agenda reads every =.org= file at the top level of each folder you have added (see [[file:01-files-and-folders.org][Files and folders]]). Files whose names start with a dot are left out, as =org-agenda-file-regexp= leaves them out.
26
27To include files in subfolders as well, turn on Settings ▸ Agenda ▸ Include files in subfolders, or set this in =config.toml=:
28
29#+BEGIN_SRC toml
30[orgstar]
31agenda-include-subfolders = true
32#+END_SRC
33
34When a file is open in the editor, the agenda reads the buffer, so unsaved edits show. Other files are read from disk and cached until their modification date or size changes. A file that uses =#+SETUPFILE= is read again on every refresh, because its setup file may have changed.
35
36Within a file, the agenda skips:
37
38- trees tagged =ARCHIVE=, and every entry in a file whose =#+FILETAGS= include =ARCHIVE=;
39- commented trees (a heading whose title starts with =COMMENT=);
40- everything below a skipped heading.
41
42An entry's category is the nearest =CATEGORY= property on it or an ancestor, else the file's =#+CATEGORY=, else the file name without =.org=.
43
44If no agenda file exists, the window says so.
45
46* The day, week and month view
47
48The default view is =org-agenda-list=: a run of days, each under a header with its date, such as =Monday 5 October= (with the year when it isn't the current year). Today, tomorrow and yesterday are named before the date: =Today · Thursday 8 October=. Today's header is in the =agenda-today= color and days before today are grey. Each header stays at the top of the window while you scroll through its day.
49
50| Setting | Default | =config.toml= | Range in Settings |
51|------------------------------+---------+-----------------------------------+-------------------|
52| Days shown | 10 | =org-agenda-span = 10= | 1 to 366 |
53| First day, relative to today | today | =org-agenda-start-day = "+0d"= | 0 to 14 days before |
54
55Both mirror the Emacs variables of the same name. The span's default is Doom's (plain Emacs shows a week); the agenda starts today, as in plain Emacs. Doom starts it 3 days back, with ="-3d"=. =org-agenda-start-day= takes only day offsets such as ="-3d"= or ="+0d"=.
56
57** Day, week and month
58
59The Day, Week and Month control in the toolbar, or =v d=, =v w= and =v m=, shows one day, one week or one calendar month, as =org-agenda-day-view=, =org-agenda-week-view= and =org-agenda-month-view= do. =d= and =w= also show a day and a week. The view is the one around the selected line's day, else around today when today is shown, else around the first day shown. Weeks start on =org-agenda-start-on-weekday= in =config.toml=: Monday (="1"=) by default, ="0"= for Sunday, or ="nil"= to start on the day the view starts from. As in Org, a configured span of 7 or 14 days starts on that weekday too.
60
61To return to the configured span, choose Agenda from the view menu.
62
63The window's title names the days shown: =Thursday 8 October 2026= for a day, =Week of 5 Oct 2026=, =October 2026=, or the first and last day for the configured span, =5 Oct – 14 Oct 2026=.
64
65** Moving through days
66
67| Key | Toolbar | Does | Org command |
68|----------+----------------------+-------------------------------------------------------------------------------+-------------------------|
69| =f= | Later (›) | Moves forward by the days shown; in the month view, to the next month | =org-agenda-later= |
70| =b= | Earlier (‹) | Moves back by the days shown; in the month view, to the month before | =org-agenda-earlier= |
71| =.= | Today | Returns to the days around today, keeping a day, week or month view | =org-agenda-goto-today= |
72| =j= | Go to Date (calendar) | Picks a date in a calendar and shows the days from it, or its day, week or month | =org-agenda-goto-date= |
73| =g=, =r= | | Refreshes, and reloads =views.toml= | =org-agenda-redo= |
74
75The agenda also refreshes on its own when files change and when you edit an open buffer. The now line (see below) moves each minute, and at midnight the agenda refreshes so that Today, the overdue entries and the statuses move to the new day.
76
77** What appears on each day
78
79The entries follow =org-agenda-get-day-entries= with Org's default entry types. The left column of each row shows the time, or for an untimed entry a short status:
80
81| Entry | Where it appears | Left column |
82|-----------------------------------------+-------------------------------------------------------------------------------------------------------+--------------------------------|
83| =DEADLINE= on that day | On its day | =Due today= on today, =Due= on other days |
84| =DEADLINE= in the future | On today, from the warning period before it | =Due in 3d= |
85| =DEADLINE= in the past, not done | On today, in the Overdue group | =2d late= |
86| =SCHEDULED= on that day | On its day | =Scheduled= |
87| =SCHEDULED= in the past, not done | On today, in the Overdue group | =3d ago= |
88| Active timestamp =<2026-10-05 Mon>= | On its day; also in property drawers | =All day= |
89| Repeating timestamp =<… +1w>= | On each occurrence within the span | =All day= |
90| Date range =<…>--<…>= | On every day of the range | =Day 2/5= (day 2 of 5) |
91| Diary sexp =%%(…)= line or =<%%(…)>= | On each day the sexp applies; see [[*Diary sexps][Diary sexps]] | =All day= |
92| Habit (=STYLE: habit=) | On today only, while not done; see [[*Habits][Habits]] | =Habit=, with a consistency graph |
93
94An entry with a time of day shows the time instead of the status: =08:00=, or =13:50–14:30= with an end time.
95
96Details:
97
98- Deadline warnings start =org-deadline-warning-days= days ahead, 14 by default, set in =config.toml=. A =-Nd= cookie in the timestamp (=<2026-10-20 Tue -3d>=) changes the warning for that deadline; =w=, =m= and =y= units work too.
99- A =-Nd= cookie on a =SCHEDULED= timestamp delays it: the entry first shows N days after the scheduled date.
100- Repeaters on =SCHEDULED= and =DEADLINE= timestamps (=+1w=, =++1w=, =.+1d=) make the entry show on the next occurrence on future days, as in Org.
101- A done entry shows only on the day of its deadline or scheduled date, not as overdue. With =org-agenda-skip-scheduled-if-done= or =org-agenda-skip-deadline-if-done= set to =true= in =config.toml=, a done entry's scheduled date or deadline doesn't show on that day either. Both are =false= by default, as in Org.
102- Inactive timestamps (=[…]=) never appear, except in log mode.
103- Ranges in comment lines and inside source blocks are ignored, as in Org.
104
105A time can come from the timestamp (=<2026-10-05 Mon 14:00-15:30>=) or from the heading text (=Call Ada 9:30am=), as =org-agenda-search-headline-for-time= allows. Times past 24:00, such as =25:30=, show as the time on the next day, =01:30=.
106
107** Today, overdue entries and empty days
108
109Days without entries are left out. Today always shows, with =Nothing scheduled= when it has no entries. To show every day of the span, as Org does by default, turn on Settings ▸ Agenda ▸ Show days without entries (on iOS, Settings ▸ Agenda), or set this in =config.toml=:
110
111#+BEGIN_SRC toml
112org-agenda-show-all-dates = true
113#+END_SRC
114
115Today's past deadlines and entries scheduled on earlier days, habits excepted, go in a group headed =Overdue= with their count, above today's other entries. The oldest date comes first; entries with the same date keep Org's order. Click or tap the header to collapse or expand the group; it stays as you left it.
116
117Days with a time grid show dotted lines at the grid's times among the timed entries, as =org-agenda-time-grid= does: by default at 8:00, 10:00 and every two hours to 20:00, on today and in one-day views, when the day has a timed entry. An entry at a grid line's time comes before the line. On today, a line marked with the current time sits among them: before the first entry that starts later, or after the last one when all have started. The grid's days and times are set in =[org-agenda-time-grid]= in =config.toml=, =org-agenda-use-time-grid= turns the grid off, and =org-agenda-show-current-time-in-grid= the now line (see [[file:13-configuration.org][Configuration]]). With the grid off there is no now line, as in Org.
118
119** Sorting
120
121Lines are sorted by =org-agenda-sorting-strategy=, set per kind of view in the =[org-agenda-sorting-strategy]= table of =config.toml= (see [[file:13-configuration.org][Configuration]]) or for one view in =views.toml=. The defaults are Org's: =habit-down time-up urgency-down category-keep= for days, =urgency-down category-keep= for the TODO list and matches, and =category-keep= for text search. With those, habits go last; timed entries come first, earliest first; the rest by urgency, which combines priority with how overdue an entry is; ties keep file order. Calendar events go among them as described in [[*Calendar events][Calendar events]].
122
123Each key compares two lines, and the next key is tried when they tie:
124
125| Key | Sorts by |
126|--------------------------------------+-----------------------------------------------------------------------------|
127| =time-up=, =time-down= | Time of day; lines without one go last (=org-agenda-sort-notime-is-late=) |
128| =timestamp-up=, =timestamp-down= | The date of the line's timestamp, of any kind |
129| =scheduled-up=, =deadline-up=, =ts-up=, =tsia-up= and their =-down= forms | The date of a =SCHEDULED=, =DEADLINE=, active or inactive timestamp only |
130| =priority-up=, =priority-down= | Priority |
131| =urgency-up=, =urgency-down= | Urgency: priority adjusted for how close or overdue the date is |
132| =effort-up=, =effort-down= | =Effort=; entries without one count as longest (=org-agenda-sort-noeffort-is-high=) |
133| =category-up=, =category-down= | Category name |
134| =category-keep= | Stops comparing lines of different categories, so they keep their order |
135| =tag-up=, =tag-down= | The last tag |
136| =todo-state-up=, =todo-state-down= | Done keywords first, then keywords in the order your sequences list them |
137| =habit-up=, =habit-down= | Habits first or last |
138| =alpha-up=, =alpha-down= | The title, ignoring case and the TODO keyword |
139
140In the TODO list and matches, the date keys use the first one in the strategy: with =scheduled-up= every line sorts by its =SCHEDULED= date, as in Org. Org's =user-defined-up= and =user-defined-down= are not supported.
141
142** Log mode
143
144Press =l= to turn log mode (=org-agenda-log-mode=) on or off; on iOS, use Log Mode in the span menu. Each day then also shows:
145
146- =Closed= entries whose =CLOSED:= timestamp is on that day;
147- =Clocked= entries for each =CLOCK:= line that starts on that day, with the clock's start and end times in the left column and the time clocked, such as =1:30=, after the title;
148- with =state= in =org-agenda-log-mode-items=, =State:= entries for each state change logged that day (a =- State "DONE" from "TODO" [2026-10-05 Mon 16:20]= line), with the new state in parentheses and the note's first line after the title.
149
150A note under a clock line (a list item directly below it) is added to the title after a =-=. =org-agenda-log-mode-items= in =config.toml= picks the kinds, separated by spaces; the default is Org's, ="closed clock"=.
151
152* Rows
153
154Each row shows, from left to right:
155
156- The time or status described above, with an icon below it on the Mac and before it on iOS: a calendar for scheduled entries, a flag for deadlines, arrows in a circle for habits, a clock or a calendar for timestamps, and a dot or a calendar for calendar events. An overdue entry shows a warning sign instead, and on the Mac a done entry shows a check mark.
157- The category, with a colored dot, above the title. For a calendar event this is the calendar's name.
158- The title: the heading without its TODO keyword, priority cookie, statistics cookies, timestamps and tags, with links shown as their descriptions. A done entry's title is struck through.
159- The value of the first statistics cookie (=1/3=, =50%=) and the tags, inherited tags first, as small capsules. iOS shows at most three tags.
160- The habit's consistency graph, for habits.
161- The TODO keyword as a colored badge, and the priority as a colored letter in a circle.
162
163The status sets the color of the left column:
164
165| Status | When | Theme key |
166|----------+-------------------------------------------------------------------------+-------------------|
167| Overdue | Not done, with a deadline or scheduled date before today | =agenda-overdue= |
168| Due soon | Not done, a deadline listed on today: due today or within its warning | =agenda-due-soon= |
169| Done | A done keyword | =done= |
170| Normal | Everything else | =agenda-time= |
171
172Ages and distances are written compactly: days up to 13 (=3d=), then whole weeks up to 59 days (=2w=), then months of 30 days up to a year (=4mo=), then years with any remaining months (=1y=, =1y 4mo=). They round down.
173
174The keyword's color comes from =[theme.todo]=, else from its class: =todo-next= for keywords of work under way such as =NEXT= and =STRT=, =todo-waiting= for =WAIT=, =HOLD= and similar, =todo-cancelled= for done keywords such as =KILL= and =CANCELLED=, and otherwise =todo= or =done=. Priorities =A=, =B= and =C= use =priority-a=, =priority-b= and =priority-c=; others use =priority=. A category's dot takes its color from =[theme.category]=, else a hue worked out from the category's name, the same on every device. See [[file:13-configuration.org][Configuration]] for the keyword lists and the theme keys.
175
176With =org-enforce-todo-dependencies= or =org-enforce-todo-checkbox-dependencies= on, an entry that can't be marked done yet is dimmed in every view (=org-agenda-dim-blocked-tasks= =t=). Settings ▸ Agenda ▸ Blocked entries (on iOS, Settings ▸ Agenda) can hide such entries instead (=invisible=), though one held back only by its own checkboxes stays dimmed, or show them as usual (=nil=). Marking a blocked entry done from the agenda is refused with the same message as in the editor; see [[file:05-todos-and-tags.org][TODOs and tags]].
177
178* Calendar events
179
180The agenda can show events from the system Calendar app (EventKit) among your entries. They are read-only: orgstar never changes your calendars. It is off by default. To turn it on:
181
182- On the Mac, turn on Settings ▸ Agenda ▸ Show events from Calendar, and check the calendars to show.
183- On iOS, turn on Settings ▸ Calendar ▸ Show Calendar Events, and tap the calendars to show.
184- Or set the keys in =config.toml=:
185
186#+BEGIN_SRC toml
187[orgstar]
188calendar-events = true
189calendar-event-calendars = "Work, Family"
190#+END_SRC
191
192=calendar-event-calendars= names calendars by title or identifier, separated by commas; =""= (the default) shows every calendar, including calendars added later. While every calendar is checked in Settings, the key stays empty.
193
194The first time events are turned on, orgstar asks for access to your calendars. The system asks for full access, because Calendar has no read-only level of access. If you declined, allow it in System Settings ▸ Privacy & Security ▸ Calendars on the Mac, or in the Settings app on iOS.
195
196Events appear only in the day, week and month view:
197
198- All-day events come first on their day, as calendars show them.
199- Timed events go among the timed entries by start time, after entries with the same start and before untimed entries and habits.
200- An event over several days shows its start time on its first day, =Until 02:00= on its last day, and =All day= on the days between.
201- The dot and the icon take the calendar's color, or =agenda-event= when the calendar has none.
202- Filters don't hide events.
203
204On the Mac, double-click an event, or select it and press =RET=, to open it in Calendar; its context menu has Show in Calendar. Entry commands such as =t= don't apply to events.
205
206* Done keywords the agenda doesn't know
207
208A keyword that isn't in =org-todo-keywords= or the file's =#+TODO= lines is not a keyword to orgstar, as to Org: it is part of the title. A heading such as =SKIPPED Call the bank= with a =SCHEDULED= date last week is therefore an open entry, and shows as overdue. To make such a word a done state, add it after the ~|~:
209
210#+BEGIN_SRC toml
211org-todo-keywords = "TODO(t) PROJ(p) LOOP(r) STRT(s) WAIT(w) HOLD(h) IDEA(i) | DONE(d) KILL(k) SKIPPED"
212#+END_SRC
213
214Done entries leave the Overdue group. With =org-agenda-skip-scheduled-if-done= and =org-agenda-skip-deadline-if-done= on, they leave their own day too.
215
216* Diary sexps
217
218The agenda evaluates diary sexps as =org-diary-sexp-entry= does. They can appear as a line starting with =%%(= under a heading, as an active timestamp =<%%(…)>=, or as a =SCHEDULED= or =DEADLINE= value.
219
220#+BEGIN_SRC org
221,* Birthdays
222%%(diary-anniversary 10 7 1990) Ada is %d years old
223%%(org-anniversary 1985 3 14) Bob turns %d
224
225,* Teaching
226,** Algebra lecture
227<%%(org-class 2026 9 7 2026 12 18 1 41)>
228#+END_SRC
229
230Lines before the first heading are ignored. A sexp that uses a function orgstar doesn't have, or signals an error, doesn't apply on any day, as Emacs reports a bad sexp and moves on.
231
232| Function | Applies | Date order |
233|--------------------------------------------+--------------------------------------------------------------------+-------------------|
234| =diary-date= /month day year/ | On matching dates; =t= or a list matches any or several | month day year |
235| =diary-block= /m1 d1 y1 m2 d2 y2/ | Every day from the first date to the second | month day year |
236| =diary-float= /month dayname n/ [/day/] | The nth /dayname/ (0 is Sunday) of the month; negative n counts from the end | month |
237| =diary-anniversary= /month day/ [/year/] | Each year on the date; =%d= is the count, =%s= its ordinal suffix | month day year |
238| =diary-cyclic= /n month day year/ | Every n days from the date | month day year |
239| =diary-remind= /sexp days/ | On the days before another sexp applies: =Reminder: Only 3 days until …= | n/a |
240| =org-anniversary= /year month day/ | As =diary-anniversary= | year month day |
241| =org-cyclic= /n year month day/ | As =diary-cyclic= | year month day |
242| =org-block= /y1 m1 d1 y2 m2 d2/ | As =diary-block= | year month day |
243| =org-date= /year month day/ | As =diary-date= | year month day |
244| =org-class= /y1 m1 d1 y2 m2 d2 dayname/ [/skip-weeks…/] | On /dayname/ between the dates, except the ISO weeks listed, and holidays: all with ='holidays=, or those named | year month day |
245| =org-calendar-holiday= | On holidays, showing their names | n/a |
246
247The =diary-= functions read dates in =calendar-date-style= =american= (month, day, year); the =org-= functions use ISO order.
248
249The holidays are those of Emacs's default =calendar-holidays= that follow fixed rules: =holiday-general-holidays= (New Year's Day, Martin Luther King Day, Groundhog Day, Valentine's Day, President's Day, St. Patrick's Day, April Fools' Day, Mother's Day, Memorial Day, Flag Day, Father's Day, Independence Day, Labor Day, Columbus Day, Halloween, Veteran's Day, Thanksgiving) and =holiday-christian-holidays= (Ash Wednesday, Good Friday, Easter Sunday, Christmas). The Hebrew, Islamic, Bahá'í, Chinese and solar holidays, and holidays you add to =calendar-holidays= in Emacs, are not included.
250
251For your own expressions, the variables =date= (as =(month day year)=) and =entry= are bound, and these calendar functions are available: =calendar-extract-month=, =calendar-extract-day=, =calendar-extract-year=, =calendar-absolute-from-gregorian=, =calendar-gregorian-from-absolute=, =calendar-day-of-week=, =calendar-leap-year-p=, =calendar-last-day-of-month=, =calendar-date-equal=, =calendar-day-number=, =calendar-nth-named-absday=, =calendar-nth-named-day=, =calendar-iso-from-absolute=, =calendar-check-holidays=, =diary-ordinal-suffix= and =diary-make-date=. The evaluator also has the common special forms (=if=, =when=, =cond=, =and=, =or=, =let=, =progn= and others) and arithmetic. It is a small subset of Emacs Lisp, not Emacs.
252
253A sexp line that returns a string shows that string; one that returns a list of strings shows one line per string; otherwise the line's text after the sexp shows.
254
255* Habits
256
257An entry with the property =STYLE: habit= and a =SCHEDULED= timestamp with a repeater is a habit, as in =org-habit=:
258
259#+BEGIN_SRC org
260,* TODO Run
261SCHEDULED: <2026-10-05 Mon .+2d/4d>
262:PROPERTIES:
263:STYLE: habit
264:END:
265- State "DONE" from "TODO" [2026-10-03 Sat 07:10]
266- State "DONE" from "TODO" [2026-10-01 Thu 07:05]
267#+END_SRC
268
269To make every entry of a file a habit, put =#+PROPERTY: STYLE habit= at the top of the file and set =org-use-property-inheritance = "STYLE"= in =config.toml=. As in Org, the =#+PROPERTY= line counts only when STYLE inherits; set the same variable in Emacs, =(setq org-use-property-inheritance '("STYLE"))=, for Emacs to agree.
270
271The repeater can be =+=, =++= or =.+=, with an optional =/Nd= maximum interval. Days the habit was done are read from =- State "DONE" … [date]= lines (for any done keyword) and =CLOSING NOTE [date]= lines in the entry.
272
273A habit appears only on today's agenda and not once it is done for the day. Its row carries the consistency graph: one cell per day for the 21 days before today and the 7 after (=org-habit-preceding-days= and =org-habit-following-days=). On the Mac the graph is at the right of the row, with =*= on days the habit was done and =!= on today; on iOS it is a strip under the title, with a dot on days it was done and today outlined. Cell colors follow org-habit's faces:
274
275| Color | Meaning | Theme key |
276|--------+--------------------------------------------+-----------------|
277| Blue | Not yet due | =habit-clear= |
278| Green | Due, within the allowed interval | =habit-ready= |
279| Yellow | Last day of the interval | =habit-alert= |
280| Red | Overdue | =habit-overdue= |
281
282Future days use lighter shades. On the Mac, hover a cell to see its date. Habits sort after other entries.
283
284* The TODO list
285
286The built-in view TODO List is =org-todo-list=: every heading with a TODO keyword that is not a done keyword, sorted by urgency (priority first). By default every open TODO appears, as in Org. =org-agenda-todo-ignore-scheduled=, =org-agenda-todo-ignore-deadlines=, =org-agenda-todo-ignore-timestamp= and =org-agenda-todo-ignore-with-date= in =config.toml= leave out entries for their timestamps, so that the TODO list shows only what isn't already on the calendar; see [[file:13-configuration.org][Configuration]]. As in Org, the searches look through the entry's text in order, so with both set, a =SCHEDULED= that doesn't leave the entry out hides a =DEADLINE= before it on the same line. With =org-agenda-tags-todo-honor-ignore-options=, TODO-only matches leave the same entries out.
287
288A saved view can list specific keywords instead, done ones included, with =keywords = "WAIT|HOLD"= (see [[*Views][Views]]). This mirrors =C-u M-x org-todo-list= with a keyword argument.
289
290The TODO list and the match views use the same rows as the day view (see [[*Rows][Rows]]), without the left column.
291
292* Tag and property matches
293
294Choose Match… from the view menu to list entries matching a match string, as =org-tags-view= (=m=) does, or TODO Match… to list only entries with an open TODO keyword (=M=). Type the match in the toolbar field and press Return.
295
296The syntax is =org-make-tags-matcher='s:
297
298#+BEGIN_SRC text
299+work-boss|LEVEL>2+TODO="WAIT"/!NEXT
300#+END_SRC
301
302** Tags
303
304| Form | Matches |
305|----------------+-----------------------------------------------------------|
306| =work=, =+work= | Entries with the tag |
307| =-boss= | Entries without the tag |
308| =+work-boss= | Both conditions (and) |
309| =a&b= | =&= between terms is the same as =+= |
310| ={^proj}= | Any tag matching the regular expression |
311
312=work|home= matches either side: the vertical bar separates alternatives, and within an alternative, terms are joined by =+=, =-= or =&=. Tags include inherited tags and =#+FILETAGS=. Tag names compare exactly; regular expressions in braces are Emacs regexps, matched without case.
313
314** Properties
315
316A term can compare a property: =NAME op value=.
317
318| Operator | Meaning |
319|-----------------------+-----------------------|
320| ===, ==== | Equal |
321| =<>=, =!==, =/== | Not equal |
322| =<=, =<== | Less, less or equal |
323| =>=, =>== | Greater, greater or equal |
324
325The value decides how the comparison works:
326
327| Value | Compared as |
328|--------------------+-----------------------------------------------------------------------------|
329| =3=, =-1.5= | Numbers; a missing or non-numeric property is 0 |
330| ="WAIT"= | Strings |
331| ={regexp}= | Regular expression match; with =<>=, =!== or =/== it must not match |
332| ="<2026-10-01>"= | Dates. Also ="<now>"=, ="<today>"=, ="<tomorrow>"=, ="<yesterday>"=, and offsets such as ="<-1w>"= or ="<+3d>"= (units =h= =d= =w= =m= =y=). Brackets may be =[…]=. |
333
334Follow the operator with =*= (=Effort>*1=) to require that the property exists; without it, a missing property compares as an empty string or 0.
335
336Names are case-insensitive. Prefix a character in a name with =\= to use it literally (=MY\-PROP="x"=). Besides the entry's own property drawer, these special properties work:
337
338| Name | Value |
339|----------------+----------------------------------------------------------|
340| =LEVEL= | The heading's level |
341| =TODO= | The TODO keyword |
342| =ITEM= | The heading title |
343| =PRIORITY= | The priority letter, or the default priority |
344| =CATEGORY= | The entry's category |
345| =FILE= | The file's path |
346| =TAGS= | The heading's own tags, as =:a:b:= |
347| =ALLTAGS= | All tags including inherited ones |
348| =SCHEDULED=, =DEADLINE=, =CLOSED= | The planning timestamp |
349| =TIMESTAMP=, =TIMESTAMP_IA= | The entry's first active or inactive timestamp |
350
351Properties inherit in matches as =org-use-property-inheritance= says: by default they don't, so =TEAM="ops"= matches only the entry with the property; with =org-use-property-inheritance = "TEAM"= it matches the entries under it too, and =#+PROPERTY= lines count. With a date value, =<>= and its synonyms match dates that are equal, as orgstar's comparison mirrors =org-time<>= in Org 9.8.7; use =<= and =>= for date ranges.
352
353** TODO keywords
354
355After the last =/= (one not followed by a quote), the match restricts TODO keywords:
356
357| Form | Matches |
358|--------------------+----------------------------------------------------------|
359| =/NEXT= | Entries whose keyword is =NEXT= |
360| =/-WAIT= | Any keyword but =WAIT=, and entries with none |
361| =/{^W}= | Keywords matching the regexp |
362| =/!= | Only entries with an open (not done) TODO keyword |
363| =/!-WAIT-HOLD= | Open TODO entries except those two |
364
365=/TODO|NEXT= matches either keyword, and =/!NEXT|WAIT= either one while open. =/!= has the same effect as choosing TODO Match….
366
367* Text search
368
369Choose Search… from the view menu to list entries containing some text, as =org-search-view= (=s=) does, or TODO Search… to list only entries with an open TODO keyword (=S=, or =C-u s=). Type the search string in the toolbar field and press Return. An entry is its heading and the text up to the next heading; text before the first heading of a file is not searched. Entries show in file order, with the rows of the TODO list.
370
371By default the string is a phrase: =pay rent= finds those words in that order, case-insensitively, and each space matches any run of spaces, tabs and line breaks, so a phrase can span lines. A string that starts with =+=, =-= or ={= is a list of snippets separated by spaces instead, all of which must hold:
372
373| Snippet | Entries that |
374|------------------+-----------------------------------------------------------------|
375| =+word=, =word= | contain the text |
376| =-word= | don't contain it |
377| ={regexp}= | match the Emacs regular expression, without case |
378| =-{regexp}= | don't match it |
379| ="two words"= | contain the words with one space between them |
380
381Phrases and snippets match parts of words: =+rent= finds =parent=. These may come first in the string, in this order:
382
383| Prefix | Effect |
384|--------+---------------------------------------------------------------------|
385| =*= | Search headlines only, not the text below them |
386| =!= | Only entries with an open TODO keyword, as TODO Search… |
387| =:= | Snippets match whole words (regexps are unchanged) |
388
389=*!:+rent -paid= lists open TODO headlines with the word =rent= and without =paid=.
390
391Two settings in =config.toml= change the defaults: =org-agenda-search-view-always-boolean= reads every string as snippets, and =org-agenda-search-view-force-full-words= makes snippets match whole words (see [[file:13-configuration.org][Configuration]]).
392
393The search covers the agenda files only, not =org-agenda-text-search-extra-files= or archive files. Entries in archived or commented trees are left out, as in the other views. To search every file in the folders, use Search Notes (=⇧⌘F=).
394
395* Views
396
397The view menu lists the built-in views, Agenda and TODO List, then the views in =views.toml=, then Match…, TODO Match…, Search… and TODO Search…. Saved views mirror =org-agenda-custom-commands=, with fewer options.
398
399=views.toml= lives in the configuration folder beside =config.toml= (=~/.config/orgstar/= by default; see [[file:13-configuration.org][Configuration]]). Each view is a =[[view]]= table:
400
401#+BEGIN_SRC toml
402[[view]]
403name = "Fortnight"
404type = "agenda"
405span = 14
406start = 0
407
408[[view]]
409name = "Waiting"
410type = "todo"
411keywords = "WAIT|HOLD"
412
413[[view]]
414name = "Work"
415type = "match"
416match = "+work-boss"
417
418[[view]]
419name = "Next at work"
420type = "todo-match"
421match = "+work/NEXT"
422
423[[view]]
424name = "Invoices"
425type = "search"
426match = "+invoice -paid"
427#+END_SRC
428
429| Key | Applies to | Meaning |
430|------------+--------------------+----------------------------------------------------------------------------|
431| =name= | all, required | The name in the view menu |
432| =type= | all | =agenda= (the default), =todo=, =match=, =todo-match=, =search= or =todo-search= |
433| =span= | =agenda= | Days shown; the setting when omitted |
434| =start= | =agenda= | First day as an integer number of days from today (=-3=, =0=); the setting when omitted |
435| =keywords= | =todo= | Keywords separated by the vertical bar; all open TODOs when omitted |
436| =match= | =match=, =todo-match=, =search=, =todo-search=, required | A match string as in [[*Tag and property matches][Tag and property matches]], or for =search= a search string as in [[*Text search][Text search]]; the =todo-= types keep only open TODO entries |
437| =sorting-strategy= | all | The view's =org-agenda-sorting-strategy=, keys separated by spaces, in place of the one in =config.toml= for its kind |
438| =prefix-format= | all | The view's =org-agenda-prefix-format=, in place of the one in =config.toml= for its kind |
439
440Note that =start= is a plain integer here, while =org-agenda-start-day= in =config.toml= is a string such as ="-3d"=.
441
442Not supported: block agendas (several views in one), =org-agenda-skip-function=, and =stuck= projects. The views load when the window opens and again on =g= or =r=. A problem in the file, such as a missing =name= or an unknown =type=, shows in the status line at the bottom of the window, and the remaining views still load.
443
444* Filters
445
446Filters hide lines without changing the view, as =org-agenda-filter= does. Calendar events always stay. The active filter shows in the status line at the bottom of the window as =Filter: …=.
447
448The Filter button in the toolbar asks for a combined filter, as =/= does; its menu has each of the filters below and Remove Filters.
449
450| Key | Does | Org command |
451|------+---------------------------------------------------------------+-----------------------------------|
452| =/= | Asks for a combined filter, starting from the current one | =org-agenda-filter= |
453| =\= | Asks for a tag filter | =org-agenda-filter-by-tag= |
454| =<= | Keeps only the selected line's category; again removes it | =org-agenda-filter-by-category= |
455| === | Asks for a regexp filter | =org-agenda-filter-by-regexp= |
456| =_= | Asks for an effort filter | =org-agenda-filter-by-effort= |
457
458The vertical bar key, =|=, removes every filter (=org-agenda-filter-remove-all=).
459
460The combined filter =/= reads terms such as:
461
462#+BEGIN_SRC text
463+work-phone<2:00/report/
464#+END_SRC
465
466- =+word= keeps and =-word= drops lines. A word without a sign keeps.
467- A word is a tag if a line in the view has that tag, else a category if a line has that category; otherwise it is ignored and the status line says so. Quote a category that contains =-=: ="my-cat"=.
468- =<0:30=, =>1:00= and ==1:00= compare the entry's =Effort= property. Entries without an effort count as longer than any effort, as with =org-agenda-sort-noeffort-is-high= t. Durations can be =H:MM=, minutes, or units such as =1h 30min= or =2d=.
469- =/regexp/= keeps lines whose text matches; =-/regexp/= drops them. Matching ignores case.
470- Starting the input with =+= followed by another sign (=++urgent=) adds to the current filter instead of replacing it.
471
472With two or more =+= categories, a line may have any of them. Tag terms all have to hold.
473
474The =/= prompt starts with the whole current filter written in this form, every term with its sign: categories, then tags, efforts and regexps, with categories that contain =-= in quotes. Pressing =Return= on it unchanged keeps the same filter.
475
476The =\= prompt reads every word as a tag, whether or not a line has it; there, ={regexp}= matches any tag that matches the regexp. The === prompt takes one regexp, with a leading =-= to drop matches. The =_= prompt takes one comparison such as =<0:30=.
477
478* Prefix format and colors
479
480orgstar reads =org-agenda-prefix-format= from the =[org-agenda-prefix-format]= table in =config.toml= (see [[file:13-configuration.org][Configuration]]) or a view's =prefix-format=. Rows already show the category, the time and the scheduled or deadline leader in their own places, so =%c=, =%t=, =%s= and =%i= add nothing there. What the format adds besides them shows after the category: =%e= the effort, =%b= the outline path (=Project->Phase->=), =%T= the last tag, and any literal text. =%l= (the level as spaces) and =%(…)= Lisp forms show nothing. Widths, =?= and punctuation work as in Org.
481
482Times written in heading text depend on =%t=: when the =agenda= format contains it, as the default =" %i %-12:c%?-12t% s"= does, a time such as =9:30am= in =Call Ada 9:30am= moves out of the title into the left column, as =org-agenda-remove-times-when-in-prefix= does. Without =%t=, the title keeps it.
483
484The agenda's colors come from these theme keys (see [[file:13-configuration.org][Configuration]]):
485
486| Key | Colors |
487|---------------------+---------------------------------------------------------------------------|
488| =agenda-background= | the Mac window's background, and the iOS widgets' background |
489| =agenda-date= | headers of days after today (Mac) |
490| =agenda-today= | today's header, the now line, and on iOS the widgets' date |
491| =agenda-time= | the left column of rows with the normal status |
492| =agenda-overdue= | the left column of overdue rows, and the Overdue group's header |
493| =agenda-due-soon= | the left column of deadlines due today or coming up |
494| =agenda-event= | calendar events whose calendar has no color |
495| =agenda-category= | category names (Mac) |
496| =todo=, =todo-next=, =todo-waiting=, =done=, =todo-cancelled= | TODO keyword badges, by class |
497| =priority-a=, =priority-b=, =priority-c=, =priority= | priority letters |
498| =tags= | tag capsules (Mac) |
499
500=[theme.todo]= colors keywords by name and =[theme.category]= colors categories by name.
501
502* Acting on entries
503
504Select a line with the mouse, or move the selection with =n= and =p=, =C-n= and =C-p=, or =↓= and =↑=. These keys work in the agenda window in every keymap preset; they are fixed and are not read from =keymap.toml=.
505
506| Key | Does | Org command |
507|-------------------------+--------------------------------------------------------------+------------------------------|
508| =n=, =p= | Moves to the next or previous line | =org-agenda-next-line=/=-previous-line= |
509| =RET=, =TAB= or double click | Shows the entry in the main window; opens a calendar event in Calendar | =org-agenda-switch-to=, =org-agenda-goto= |
510| =SPC= | Shows the entry in the main window, keeping the agenda in front | =org-agenda-show-and-scroll-up= |
511| =t= or =C-c C-t= | Changes the TODO state, as in the editor | =org-agenda-todo= |
512| =+=, =-= | Raises or lowers the priority | =org-agenda-priority-up=/=-down= |
513| =,= | Sets the priority | =org-agenda-priority= |
514| =:= or =C-c C-q= | Sets tags | =org-agenda-set-tags= |
515| =C-c C-s= | Schedules | =org-agenda-schedule= |
516| =C-c C-d= | Sets a deadline | =org-agenda-deadline= |
517| =S-<right>=, =S-<left>= (=⇧→=, =⇧←=) | Moves the date the line is listed for by a day | =org-agenda-date-later=/=-earlier= |
518| =I= | Clocks in | =org-agenda-clock-in= |
519| =O= | Clocks out | =org-agenda-clock-out= |
520| =X= | Cancels the clock | =org-agenda-clock-cancel= |
521| =C-c C-w= | Refiles | =org-agenda-refile= |
522| =$=, =C-c $=, =C-c C-x C-s= | Archives | =org-agenda-archive= |
523| =k= | Captures an entry scheduled on the selected line's day | =org-agenda-capture= |
524| =s= | Saves every file | =org-save-all-org-buffers= |
525
526Without a selected line, =k= captures onto today when today is shown, else onto the first day shown. The + at the right of each day's header captures onto that day; see [[file:08-capture.org][Capture]].
527
528Right-click a line for Open, Cycle TODO State, Set Priority…, Set Tags…, Schedule…, Set Deadline…, Clock In, Mark or Unmark, and Archive. A calendar event's menu has Show in Calendar.
529
530=t= follows =org-todo=: with fast-selection keys in your TODO keywords it asks for the state, otherwise it cycles (see [[file:05-todos-and-tags.org][TODOs and tags]]). Questions an action needs, such as a date for =C-c C-s= or a note on a state change, appear in the agenda window. Dates take the same input as in the editor (see [[file:06-dates-and-clocking.org][Dates, scheduling and clocking]]). =S-<right>= and =S-<left>= work only on deadline, scheduled and timestamp lines; they change the timestamp the line comes from.
531
532=C-c C-w= brings the main window forward and asks for the target there, where the target list is searchable.
533
534=I= clocks in as Clock In does, so with no clock running it first asks about open clocks, in the main window's echo area. See [[file:06-dates-and-clocking.org][Dates, scheduling and clocking]].
535
536Each action finds the entry again by its heading line before it changes anything, so an action on a line whose entry has since moved or changed reports that rather than editing the wrong text. Edits go through the open buffer when the file is open, and through the file otherwise.
537
538** Bulk actions
539
540| Key | Does | Org command |
541|-----+------------------------------------------+--------------------------------|
542| =m= | Marks the selected entry (shown with a bar at its left) | =org-agenda-bulk-mark= |
543| =u= | Unmarks it | =org-agenda-bulk-unmark= |
544| =U= | Unmarks everything | =org-agenda-bulk-unmark-all= |
545| =B= | Asks for an action on every marked entry | =org-agenda-bulk-action= |
546
547=B= offers =$= archive, =r= refile, =t= set a TODO state (typed; empty for none), =+= add a tag, =-= remove a tag, =s= schedule and =d= set a deadline. Type the letter and press OK. Entries that changed since they were marked are skipped and counted in the status line. An action that needs a further answer per entry, such as a state-change note, is not run in bulk; the status line tells you to run it on the entry.
548
549* Reminders
550
551orgstar can post a notification before each timed entry, as =org-agenda-to-appt= hands entries to =appt=. Reminders cover the next 7 days and include deadline, scheduled, plain timestamp and range lines that have a time of day and are not done. Overdue items and upcoming-deadline warnings don't get reminders.
552
553| Setting | Default | =config.toml= |
554|-------------------------------+---------+------------------------------------|
555| Notify before timed entries | on | =reminders = true= under =[orgstar]= |
556| Minutes of warning | 12 | =appt-message-warning-time = 12= |
557
558Both are in Settings ▸ Agenda. An entry's =APPT_WARNTIME= property, in minutes, overrides the warning time for that entry. If the warning time has already passed but the entry hasn't started, the reminder fires at once.
559
560The notification's title is the heading; its body is the time, Org's leader text (=Scheduled:=, =Deadline:=) if any, and the category, such as =14:00 · Scheduled: · work=. Clicking it shows the entry in the main window.
561
562On the Mac, reminders are updated two seconds after edits stop, when files change, and every hour. At most 64 are set, the earliest first. The agenda's status line says how far ahead they are set, or that notifications are off for orgstar in System Settings. Turning reminders off removes the pending ones.
563
564* The board
565
566The board shows the entries of your agenda files as a table or as kanban columns. It has no Org equivalent; the table is close to Org's column view across files. Open it with Window ▸ Board (=⇧⌘B=). It reads the same files as the agenda, including the subfolder setting.
567
568The toolbar has:
569
570- a Table / Kanban switch;
571- a match field, with the syntax of [[*Tag and property matches][Tag and property matches]]. When empty, the board shows every entry with a TODO keyword;
572- in table mode, a field of property names to show as extra columns, separated by commas (default =EFFORT=).
573
574These three choices are remembered by the app; they are not in =config.toml=.
575
576** Table
577
578Columns: TODO, priority, title, tags, scheduled, deadline, your property columns, and the file. Click a column header to sort (the property columns don't sort). The TODO column sorts by the keyword's order in your sequences. The context menu on a row offers Set TODO (a keyword or None), Set Property… (asked in the main window as =NAME value=) and Open. Double-click a row to open the entry.
579
580** Kanban
581
582Each TODO keyword your files use gets a column, in sequence order, done keywords included. A card shows the priority and title, the category and tags, and the deadline (in red) or the scheduled date. Drag a card to another column to set that keyword; this is the same edit as changing the state in the editor, so logging and state-change notes apply (a note is asked for in the main window). Double-click a card to open its entry. With VoiceOver, each card has a Move to … action for each other column.
583
584With a match that includes entries without a TODO keyword, those entries appear in the table but not on the kanban board, which has no column for them.
585
586The board is not available on iOS.
587
588* The agenda on iOS
589
590The Agenda tab shows the same views from the same files, using the settings in the synced =config.toml= and the views in =views.toml= (see [[file:14-ios.org][iOS]]). Differences from the Mac:
591
592- The Views menu, at the top left, lists the built-in views, your saved views, Tags and Properties…, which asks for a match string, and Search…, which asks for a search string. There is no TODO-only match or search from the menu; use =/!= in the match, =!= at the start of the search string, or a =todo-match= or =todo-search= view.
593- A bar floats at the bottom of the screen with Earlier, Filter, Today, Go to Date, the span and Later. The span menu switches between Day, Week, Month and the configured span (=10 Days= by default); Day, Week and Month are around today when today is shown, else around the first day shown. Weeks start on =org-agenda-start-on-weekday=, as on the Mac. In the TODO list and match views the bar has Filter and Agenda, which returns to the day view. Messages show above the bar; tap one to dismiss it.
594- The title names the days shown: =Thu 8 Oct=, =Week of 5 Oct=, =October 2026=, or =5 Oct – 14 Oct=.
595- Day headers read =Today · Thu 8 Oct=, =Tomorrow · Fri 9 Oct= or =Mon 12 Oct=, with a + that captures onto that day. Days before today are grey.
596- Pull down to refresh.
597- The Filter button opens a sheet: type a filter as for =/=, or tap a tag or category to cycle between Keep, Leave out and no filter.
598- Tap an entry to open it. Tap a calendar event to open Calendar on the event's day; iOS can't open Calendar at one event.
599- Swipe left on an open TODO entry for Done, which sets the first done keyword of its sequence, and Next State, which moves to the next keyword; and on any entry with a heading, for Delete, which asks first, as Delete… in the menu does. The sequence is the one the file defines: the default keywords from =config.toml=, the file's own =#+TODO= lines, and those of its setup files, with unsaved edits in an open buffer included.
600- Swipe right on a scheduled entry, a deadline, a habit or a TODO entry, when it isn't done, for Tomorrow, Next Week and Pick Date. Tomorrow is the day after today and Next Week is next Monday. On a deadline row these move the deadline; on other rows they set the scheduled date. A timed row keeps its times.
601- Touch and hold an entry for TODO State…, Reschedule (Tomorrow, Next Week, Pick Date…), Schedule…, Deadline…, Tags…, Priority…, Clock In, Refile…, Archive… and Delete…, which removes the heading and everything under it.
602- Marking an entry done and rescheduling one give haptic feedback.
603- Log Mode, in the span menu, turns log mode on and off. The widgets never show log mode's entries.
604- There are no keyboard commands or bulk marks.
605- Reminders are set while the app is open. iOS allows at most 64 pending notifications and the app can't add more while it isn't running, so the agenda's footer says how far ahead they go and asks you to open orgstar to set later ones.
606
607The Today and Up Next widgets show the agenda on the Home Screen and the Lock Screen; see [[file:14-ios.org][iPhone and iPad]].