Debian Codegraph @

etmTk/help/UserManual.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <meta http-equiv="Content-Style-Type" content="text/css" />
6 <meta name="generator" content="pandoc" />
7 <title>ETM Users Manual</title>
8 <style type="text/css">code{white-space: pre;}</style>
9 </head>
10 <body>
11 <style>
12 body {
13 margin: auto;
14 padding-right: 1em;
15 padding-left: 1em;
16 max-width: 44em;
17 border-left: 1px solid black;
18 border-right: 1px solid black;
19 color: black;
20 font-family: Verdana, sans-serif;
21 font-size: 100%;
22 line-height: 140%;
23 color: #333;
24 }
25 pre, tt{
26 font-family: monospace;
27 padding: 2px 4px;
28 }
29 code{
30 white-space: pre-wrap;
31 font-size: 110%;
32 padding: 1px 1px;
33 }
34 h1 a, h2 a, h3 a, h4 a, h5 a, li a {
35 text-decoration: none;
36 color: #7a5ada;
37 }
38 header, h1, h2, h3, h4, h5 { font-family: verdana;
39 font-weight: bold;
40 /*border-bottom: 1px dotted black;*/
41 color: #7a5ada; }
42 header {
43 font-size: 130%;
44 }
45
46 h1 {
47 font-size: 130%;
48 }
49
50 h2 {
51 font-size: 110%;
52 border-bottom: 1px dotted black;
53 }
54
55 h3 {
56 font-size: 100%;
57 border-bottom: 1px dotted black;
58 }
59
60 h4 {
61 font-size: 90%;
62 font-style: italic;
63 border-bottom: 1px dotted black;
64 }
65
66 h5 {
67 font-size: 85%;
68 font-style: italic;
69 border-bottom: 1px dotted black;
70 }
71
72 h1.title {
73 font-size: 200%;
74 font-weight: bold;
75 padding-top: 0.2em;
76 padding-bottom: 0.2em;
77 text-align: left;
78 border: none;
79 }
80
81 dt code {
82 font-weight: bold;
83 }
84 dd p {
85 margin-top: 0;
86 }
87
88 #footer {
89 padding-top: 1em;
90 font-size: 70%;
91 color: gray;
92 text-align: center;
93 }
94 </style>
95 <div id="header">
96 <h1 class="title">ETM Users Manual</h1>
97 </div>
98 <div id="TOC">
99 <ul>
100 <li><a href="#overview">Overview</a><ul>
101 <li><a href="#sample-entries">Sample entries</a></li>
102 <li><a href="#starting-etm">Starting etm</a></li>
103 <li><a href="#views">Views</a></li>
104 <li><a href="#creating-new-items">Creating New Items</a></li>
105 <li><a href="#editing-existing-items">Editing Existing Items</a></li>
106 <li><a href="#timers">Timers</a></li>
107 <li><a href="#sharing-with-other-calendar-applications">Sharing with other calendar applications</a></li>
108 <li><a href="#tools">Tools</a></li>
109 <li><a href="#calendars">Calendars</a></li>
110 <li><a href="#data-organization">Data Organization</a></li>
111 <li><a href="#colors">Colors</a></li>
112 <li><a href="#internationalization">Internationalization</a></li>
113 </ul></li>
114 <li><a href="#item-types">Item types</a><ul>
115 <li><a href="#action">~ Action</a></li>
116 <li><a href="#event">* Event</a></li>
117 <li><a href="#occasion">^ Occasion</a></li>
118 <li><a href="#note">! Note</a></li>
119 <li><a href="#and-tasks">-, % and + Tasks</a></li>
120 <li><a href="#in-basket">$ In basket</a></li>
121 <li><a href="#someday-maybe">? Someday maybe</a></li>
122 <li><a href="#comment"># Comment</a></li>
123 <li><a href="#defaults">= Defaults</a></li>
124 </ul></li>
125 <li><a href="#keys">@Keys</a><ul>
126 <li><a href="#a-alert"><span class="citation">@a</span> alert</a></li>
127 <li><a href="#b-beginby"><span class="citation">@b</span> beginby</a></li>
128 <li><a href="#c-context"><span class="citation">@c</span> context</a></li>
129 <li><a href="#d-description"><span class="citation">@d</span> description</a></li>
130 <li><a href="#e-extent"><span class="citation">@e</span> extent</a></li>
131 <li><a href="#f-done-due"><span class="citation">@f</span> done[; due]</a></li>
132 <li><a href="#g-goto"><span class="citation">@g</span> goto</a></li>
133 <li><a href="#h-history"><span class="citation">@h</span> history</a></li>
134 <li><a href="#i-invitees"><span class="citation">@i</span> invitees</a></li>
135 <li><a href="#j-job"><span class="citation">@j</span> job</a></li>
136 <li><a href="#k-keyword"><span class="citation">@k</span> keyword</a></li>
137 <li><a href="#l-location"><span class="citation">@l</span> location</a></li>
138 <li><a href="#m-memo"><span class="citation">@m</span> memo</a></li>
139 <li><a href="#n-noshow"><span class="citation">@n</span> noshow</a></li>
140 <li><a href="#o-overdue"><span class="citation">@o</span> overdue</a></li>
141 <li><a href="#p-priority"><span class="citation">@p</span> priority</a></li>
142 <li><a href="#q-datetime"><span class="citation">@q</span> datetime</a></li>
143 <li><a href="#r-repetition-rule"><span class="citation">@r</span> repetition rule</a></li>
144 <li><a href="#s-starting-datetime"><span class="citation">@s</span> starting datetime</a></li>
145 <li><a href="#t-tags"><span class="citation">@t</span> tags</a></li>
146 <li><a href="#u-user"><span class="citation">@u</span> user</a></li>
147 <li><a href="#v-action_rates-key"><span class="citation">@v</span> action_rates key</a></li>
148 <li><a href="#w-action_markups-key"><span class="citation">@w</span> action_markups key</a></li>
149 <li><a href="#x-expense"><span class="citation">@x</span> expense</a></li>
150 <li><a href="#z-time-zone"><span class="citation">@z</span> time zone</a></li>
151 <li><a href="#include">@+ include</a></li>
152 <li><a href="#exclude">@- exclude</a></li>
153 </ul></li>
154 <li><a href="#dates">Dates</a><ul>
155 <li><a href="#fuzzy-dates">Fuzzy dates</a></li>
156 <li><a href="#time-periods">Time periods</a></li>
157 <li><a href="#time-zones">Time zones</a></li>
158 <li><a href="#anniversary-substitutions">Anniversary substitutions</a></li>
159 <li><a href="#easter">Easter</a></li>
160 </ul></li>
161 <li><a href="#preferences">Preferences</a><ul>
162 <li><a href="#template-expansions">Template expansions</a></li>
163 <li><a href="#options">Options</a></li>
164 </ul></li>
165 <li><a href="#custom-view">Custom view</a><ul>
166 <li><a href="#view-type">View type</a></li>
167 <li><a href="#groupby-setting">Groupby setting</a></li>
168 <li><a href="#groupby-examples">Groupby examples</a></li>
169 <li><a href="#view-options">View Options</a></li>
170 <li><a href="#saving-view-specifications">Saving view specifications</a></li>
171 </ul></li>
172 <li><a href="#shortcuts">Shortcuts</a><ul>
173 <li><a href="#menu">Menu</a></li>
174 <li><a href="#edit">Edit</a></li>
175 </ul></li>
176 </ul>
177 </div>
178 <h1 id="overview"><a href="#overview">Overview</a></h1>
179 <p>In contrast to most calendar/todo applications, creating items (events, tasks, and so forth) in etm does not require filling out fields in a form. Instead, items are created as free-form text entries using a simple, intuitive format and stored in plain text files.</p>
180 <p>Dates in the examples below are entered using <em>fuzzy parsing</em> - e.g., <code>+7</code> for seven days from today, <code>fri</code> for the first Friday on or after today, <code>+1/1</code> for the first day of next month, <code>sun - 6d</code> for Monday of the current week. See <a href="#dates">Dates</a> for details.</p>
181 <h2 id="sample-entries"><a href="#sample-entries">Sample entries</a></h2>
182 <ul>
183 <li><p>A sales meeting (an event) [s]tarting seven days from today at 9:00am with an [e]xtent of one hour and a default [a]lert 5 minutes before the start:</p>
184 <pre><code>* sales meeting @s +7 9a @e 1h @a 5</code></pre></li>
185 <li><p>The sales meeting with another [a]lert 2 days before the meeting to (e)mail a reminder to a list of recipients:</p>
186 <pre><code>* sales meeting @s +7 9a @e 1h @a 5
187 @a 2d: e; [email protected], [email protected]</code></pre></li>
188 <li><p>Prepare a report (a task) for the sales meeting [b]eginning 3 days early:</p>
189 <pre><code>- prepare report @s +7 @b 3</code></pre></li>
190 <li><p>A period [e]xtending 35 minutes (an action) spent working on the report yesterday:</p>
191 <pre><code>~ report preparation @s -1 @e 35</code></pre></li>
192 <li><p>Get a haircut (a task) on the 24th of the current month and then [r]epeatedly at (d)aily [i]ntervals of (14) days and, [o]n completion, (r)estart from the completion date:</p>
193 <pre><code>- get haircut @s 24 @r d &amp;i 14 @o r</code></pre></li>
194 <li><p>Payday (an occasion) on the last week day of each month. The <code>&amp;s -1</code> part of the entry extracts the last date which is both a weekday and falls within the last three days of the month):</p>
195 <pre><code>^ payday @s 1/1 @r m &amp;w MO, TU, WE, TH, FR
196 &amp;m -1, -2, -3 &amp;s -1</code></pre></li>
197 <li><p>Take a prescribed medication daily (a reminder) [s]tarting today and [r]epeating (d)aily at [h]ours 10am, 2pm, 6pm and 10pm [u]ntil (12am on) the fourth day from today. Trigger the default [a]lert zero minutes before each reminder:</p>
198 <pre><code>* take Rx @s +0 @r d &amp;h 10, 14, 18, 22 &amp;u +4 @a 0</code></pre></li>
199 <li><p>Move the water sprinkler (a reminder) every thirty mi[n]utes on Sunday afternoons using the default alert zero minutes before each reminder:</p>
200 <pre><code>* Move sprinkler @s 1 @r n &amp;i 30 &amp;w SU &amp;h 14, 15, 16, 17 @a 0</code></pre>
201 <p>To limit the sprinkler movement reminders to the [M]onths of April through September each year append <code>&amp;M 4, 5, 6, 7, 8, 9</code> to the <span class="citation">@r</span> entry.</p></li>
202 <li><p>Grandparent's day (an occasion) each year on the first Sunday in September after Labor day:</p>
203 <pre><code>^ Grandparent&#39;s Day @s 2012-09-01
204 @r y &amp;M 9 &amp;w SU &amp;m 7, 8, 9, 10, 11, 12, 13 </code></pre></li>
205 <li><p>Presidential election day (an occasion) every four years on the first Tuesday after a Monday in November:</p>
206 <pre><code>^ Presidential Election Day @s 2012-11-06
207 @r y &amp;i 4 &amp;M 11 &amp;w TU &amp;m 2, 3, 4, 5, 6, 7, 8 </code></pre></li>
208 <li><p>Join the etm discussion group (a task) [s]tarting 14 days from today. Because of the <span class="citation">@g</span> (goto) link, pressing <em>G</em> when this item is selected in the gui would open the link using the system default application which, in this case, would be your default browser:</p>
209 <pre><code>- join the etm discussion group @s +14
210 @g groups.google.com/group/eventandtaskmanager/topics</code></pre></li>
211 </ul>
212 <h2 id="starting-etm"><a href="#starting-etm">Starting etm</a></h2>
213 <p>To start the etm GUI open a terminal window and enter <code>etm</code> at the prompt:</p>
214 <pre><code>$ etm</code></pre>
215 <p>If you have not done a system installation of etm you will need first to cd to the directory where you unpacked etm.</p>
216 <p>Note: if you change the window size and/or position of the etm window on your display and quit etm from the etm file menu, then the closing size and position will be restored when you restart etm.</p>
217 <p>You can add a command to use the CLI instead of the GUI. For example, to get the complete command line usage information printed to the terminal window just add a question mark:</p>
218 <pre><code>$ etm ?
219 Usage:
220
221 etm [logging level] [path] [?] [acmsv]
222
223 With no arguments, etm will set logging level 3 (warn), use settings from
224 the configuration file ~/.etm/etmtk.cfg, and open the GUI.
225
226 If the first argument is an integer not less than 1 (debug) and not greater
227 than 5 (critical), then set that logging level and remove the argument.
228
229 If the first (remaining) argument is the path to a directory that contains
230 a file named etmtk.cfg, then use that configuration file and remove the
231 argument.
232
233 If the first (remaining) argument is one of the commands listed below, then
234 execute the remaining arguments without opening the GUI.
235
236 a ARG display the agenda view using ARG, if given, as a filter.
237 c ARGS display a custom view using the remaining arguments as the
238 specification. (Enclose ARGS in single quotes to prevent shell
239 expansion.)
240 d ARG display the day view using ARG, if given, as a filter.
241 k ARG display the keywords view using ARG, if given, as a filter.
242 m INT display a custom view using the remaining argument, which
243 must be a positive integer, to display a custom view using the
244 corresponding entry from the file given by report_specifications
245 in etmtk.cfg.
246 Use ? m to display the numbered list of entries from this file.
247 n ARG display the notes view using ARG, if given, as a filter.
248 N ARGS Create a new item using the remaining arguments as the item
249 specification. (Enclose ARGS in single quotes to prevent shell
250 expansion.)
251 p ARG display the path view using ARG, if given, as a filter.
252 t ARG display the tags view using ARG, if given, as a filter.
253 v display information about etm and the operating system.
254 ? ARG display (this) command line help information if ARGS = &#39;&#39; or,
255 if ARGS = X where X is one of the above commands, then display
256 details about command X. &#39;X ?&#39; is equivalent to &#39;? X&#39;.</code></pre>
257 <p>For example, you can print your agenda to the terminal window by adding the letter &quot;a&quot;:</p>
258 <pre><code>$ etm a
259 Today
260 &gt; set up luncheon meeting with Joe Smith 4d
261 Tomorrow
262 * test command line event 3pm ~ 4pm
263 * Aerobics 5pm ~ 6pm
264 - follow up with Mary Jones
265 Now
266 Available
267 - Hair cut -1d
268 Next
269 errands
270 - milk and eggs
271 phone
272 - reservation for Saturday dinner
273 Someday
274 ? lose weight and exercise more</code></pre>
275 <p>You can filter the output by adding a (case-insensitive) argument:</p>
276 <pre><code>$ etm a hair
277 Now
278 Available
279 - Hair cut -1d</code></pre>
280 <p>or <code>etm d mar .*2014</code> to show your items for March, 2014.</p>
281 <p>You can add a question mark to a command to get details about the commmand, e.g.:</p>
282 <pre><code>Usage:
283
284 etm c &lt;type&gt; &lt;groupby&gt; [options]
285
286 Generate a custom view where type is either &#39;a&#39; (action) or &#39;c&#39; (composite).
287 Groupby can include *semicolon* separated date specifications and
288 elements from:
289 c context
290 f file path
291 k keyword
292 t tag
293 u user
294
295 A *date specification* is either
296 w: week number
297 or a combination of one or more of the following:
298 yy: 2-digit year
299 yyyy: 4-digit year
300 MM: month: 01 - 12
301 MMM: locale specific abbreviated month name: Jan - Dec
302 MMMM: locale specific month name: January - December
303 dd: month day: 01 - 31
304 ddd: locale specific abbreviated week day: Mon - Sun
305 dddd: locale specific week day: Monday - Sunday
306
307 Options include:
308 -b begin date
309 -c context regex
310 -d depth (CLI type a only)
311 -e end date
312 -f file regex
313 -k keyword regex
314 -l location regex
315 -o omit (type c only)
316 -s summary regex
317 -S search regex
318 -t tags regex
319 -u user regex
320 -w column 1 width
321 -W column 2 width
322
323 Example:
324
325 etm c &#39;c ddd, MMM dd yyyy -b 1 -e +1/1&#39;</code></pre>
326 <p>Note: The CLI offers the same views and reporting, with the exception of week and month view, as the GUI. It is also possible to create new items in the CLI with the <code>n</code> command. Other modifications such as copying, deleting, finishing and so forth, can only be done in the GUI or, perhaps, in your favorite text editor. An advantage to using the GUI is that it provides auto-completion and validation.</p>
327 <p>Tip: If you have a terminal open, you can create a new item or put something to finish later in your inbox quickly and easily with the &quot;N&quot; command. For example,</p>
328 <pre><code> etm N &#39;123 456-7890&#39;</code></pre>
329 <p>would create an entry in your inbox with this phone number. (With no type character an &quot;$&quot; would be supplied automatically to make the item an inbox entry and no further validation would be done.)</p>
330 <h2 id="views"><a href="#views">Views</a></h2>
331 <p>All views display only items consistent with the current choices of active calendars. Click the settings icon on the left side of the top menu bar to choose active calendars.</p>
332 <p>Week and month views have three panes. The top one displays a graphic illustration of scheduled times for the relevant period, the middle one displays an tree view of items grouped by date and the bottom one displays detail information. Custom view also has three panes but the top one is an entry area for providing the specification for the custom view. All other views have two panes - a tree view in the top pane and details in the bottom pane.</p>
333 <p>If a (case-insensitive) filter is entered then the display in the tree view will be limited to items that match somewhere in either the branch or the leaf. Relevant branches will automatically be expanded to show matches.</p>
334 <p>In week and month views, <em>Home</em> selects the current date. In all views other than week and month, <em>Home</em> selects the first item in the tree pane.</p>
335 <p>In all views, pressing <em>Return</em> with an item selected will open a context menu with options to copy, delete, edit and so forth.</p>
336 <p>In all views, clicking in the details panel with an item selected will open the item for editing if it is not repeating and otherwise prompt for the instance(s) to be changed.</p>
337 <p>In all views, pressing <em>O</em> will open a dialog to choose the outline depth. Pressing <em>L</em> will toggle the display of a column displaying item <em>labels</em> where, for example, an item with <span class="citation">@a</span>, <span class="citation">@d</span> and <span class="citation">@u</span> fields would have the label &quot;adu&quot;. Pressing <em>S</em> will show a text verion of the current display suitable for copy and paste. The text version will respect the current outline depth in the view.</p>
338 <p>In custom view it is possible to export the current view in either text or CSV (comma separated values) format to a file of your choosing.</p>
339 <p>Note. In custom view you need to move the focus from the view specification entry field in order for the shortcuts <em>O</em>, <em>L</em> and <em>S</em> to work.</p>
340 <p>In all views:</p>
341 <ul>
342 <li><p>if an item is selected:</p>
343 <ul>
344 <li><p>pressing <em>Shift-H</em> will show a history of changes for the file containing the selected item, first prompting for the number of changes.</p></li>
345 <li><p>pressing <em>Shift-X</em> will export the selected item in iCal format.</p></li>
346 </ul></li>
347 <li><p>if an item is not selected:</p>
348 <ul>
349 <li><p>pressing <em>Shift-H</em> will show a history of changes for all files, first prompting for the number of changes.</p></li>
350 <li><p>pressing <em>Shift-X</em> will export all items in active calendars in iCal format.</p></li>
351 </ul></li>
352 </ul>
353 <h3 id="agenda-view"><a href="#agenda-view">Agenda View</a></h3>
354 <p>What you need to know now beginning with your schedule for the next few days and followed by items in these groups:</p>
355 <ul>
356 <li><p><strong>In basket</strong>: In basket items and items with missing types or other errors.</p></li>
357 <li><p><strong>Now</strong>: All <em>scheduled</em> (dated) tasks whose due dates have passed including delegated tasks and waiting tasks (tasks with unfinished prerequisites) grouped by available, delegated and waiting and, within each group, by the due date.</p></li>
358 <li><p><strong>Next</strong>: All <em>unscheduled</em> (undated) tasks grouped by context (home, office, phone, computer, errands and so forth) and sorted by priority and extent. These tasks correspond to GTD's <em>next actions</em>. These are tasks which don't really have a deadline and can be completed whenever a convenient opportunity arises. Check this view, for example, before you leave to run errands for opportunities to clear other errands.</p></li>
359 <li><p><strong>Someday</strong>: Someday (maybe) items for periodic review.</p></li>
360 </ul>
361 <p>Note: Finished tasks, actions and notes are not displayed in this view.</p>
362 <h3 id="week-and-month-views"><a href="#week-and-month-views">Week and Month Views</a></h3>
363 <p>These views only differ in whether the graphic in the top pane describes a week or a month. All dated items appear in the middle, tree pane in these view, grouped by date and sorted by starting time and item type. Displayed items include:</p>
364 <ul>
365 <li><p>All non-repeating, dated items.</p></li>
366 <li><p>All repetitions of repeating items with a finite number of repetitions. This includes 'list-only' repeating items and items with <code>&amp;u</code> (until) or <code>&amp;t</code> (total number of repetitions) entries.</p></li>
367 <li><p>For repeating items with an infinite number of repetitions, those repetitions that occur within the first <code>weeks_after</code> weeks after the current week are displayed along with the first repetition after this interval. This assures that at least one repetition will be displayed for infrequently repeating items such as voting for president.</p></li>
368 </ul>
369 <p>The graphic display in the top pane has a square cell for each week/month date. Within this cell, scheduled, <em>busy</em> times are indicated by segments of a square busy border that surrounds the date. This border can be regarded as a 24-hour clock face that proceeds clockwise from 12am at the lower, left-hand corner with 6 hour segments for each side: 12am - 6am moving upward on the left side, 6am - 12pm moving rightward along the top, 12pm - 6pm moving downward along the right side and, finally, 6pm - 12pm moving leftward along the bottom. When nothing is scheduled for a date, the border is blank. When only one event is scheduled for a date, say from 9am until 3pm, then the border would be colored from the middle of the top side (9am) around the top, right-hand corner and downward to the middle of the right side (3pm). When other periods are scheduled, corresponding portions of the border would be colored. If two or more scheduled periods overlap, then a small, red box appears in the lower, left-hand corner of the border to warn of the conflict.</p>
370 <p>When the top pane has the focus, the left/right cursor keys move to the previous/subsequent week or month and the up/down cursor keys move to the previous/subsequent date. Either <em>Home</em> or <em>Space</em> moves the display to the current date. Pressing <em>J</em> will first prompt for a fuzzy-parsed date and then &quot;jump&quot; to the specified date. Whenever a date is selected in the top pane, the date tree in the middle pane is scrolled, if necessary, to display the selected date first. Whenever a date is selected in either week or month view, the same date is automatically becomes the selection in the other view as well.</p>
371 <p>Note: If a date is selected for which no items are scheduled, then the last date with scheduled items on or before the selected date will become the selected date in the middle, tree pane.</p>
372 <p>Tip: Want to see your next appointment with Dr. Jones? Switch to day view and enter &quot;jones&quot; in the filter.</p>
373 <p>Tip. You can display a list of busy times or, after providing the needed period in minutes, a list of free times that would accommodate the requirement within the selected week/month. Both options are in the <em>View</em> menu.</p>
374 <h3 id="week-view"><a href="#week-view">Week View</a></h3>
375 <p>Events and occasions displayed graphically by week with one column for each day. Left and right cursor keys change, respectively, to the previous and next week. Up and down cursor keys select, respectively, the previous and next items within the given week. Items can also be selected by moving the mouse over the item. The details for the selected item are displayed at the bottom of the screen. Pressing return with an item selected or double-clicking an item opens a context menu. Control-clicking an unscheduled time opens a dialog to create an event for that date and time.</p>
376 <h3 id="month-view"><a href="#month-view">Month View</a></h3>
377 <p>Events and occasions displayed graphically by month. Left and right cursor keys change, respectively, to the previous and next month. Up and down cursor keys select, respectively, the previous and next days within the given month. Days can also be selected by moving the mouse over the item. A list of occasions and events for the selected day is displayed at the bottom of the screen. Double clicking a date or pressing <em>Return</em> with a date selected opens a dialog to create an item for that date.</p>
378 <p>The current date and days with occasions are highlighted.</p>
379 <p>Tip. You can display a list of busy times or, after providing the needed period in minutes, a list of free times that would accommodate the requirement within the selected month. Both options are in the <em>View</em> menu.</p>
380 <h3 id="tag-view"><a href="#tag-view">Tag View</a></h3>
381 <p>All items with tag entries grouped by tag and sorted by type and <em>relevant datetime</em>. Note that items with multiple tags will be listed under each tag.</p>
382 <p>Tip: Use the filter to limit the display to items with a particular tag.</p>
383 <h3 id="keyword-view"><a href="#keyword-view">Keyword View</a></h3>
384 <p>All items grouped by keyword and sorted by type and <em>relevant datetime</em>.</p>
385 <h3 id="path-view"><a href="#path-view">Path View</a></h3>
386 <p>All items grouped by file path and sorted by type and <em>relevant datetime</em>. Use this view to review the status of your projects.</p>
387 <p>The <em>relevant datetime</em> is the past due date for any past due task, the starting datetime for any non-repeating item and the datetime of the next instance for any repeating item.</p>
388 <p>Note: Items that you have &quot;commented out&quot; by beginning the item with a <code>#</code> will only be visible in this view.</p>
389 <h3 id="note-view"><a href="#note-view">Note View</a></h3>
390 <p>All notes grouped and sorted by keyword and summary.</p>
391 <h3 id="custom"><a href="#custom">Custom</a></h3>
392 <p>Design your own view. See <a href="#custom-view">Custom view</a> for details.</p>
393 <h2 id="creating-new-items"><a href="#creating-new-items">Creating New Items</a></h2>
394 <p>Items of any type can be created by pressing <em>N</em> in the GUI and then providing the details for the item in the resulting dialog.</p>
395 <p>An event can also be created by double-clicking in a date cell in either Week or Month View - the corresponding date will be entered as the starting date when the dialog opens.</p>
396 <p>When editing an item, clicking on <em>Finish</em> or pressing <em>Shift-Return</em> will validate your entry. If there are errors, they will be displayed and you can return to the editor to correct them. If there are no errors, this will be indicated in a dialog, e.g.,</p>
397 <pre><code>Task scheduled for Tue Jun 03
398
399 Save changes and exit?</code></pre>
400 <p>Tip. When creating or editing a repeating item, pressing <em>Finish</em> will also display a list of instances that will be generated.</p>
401 <p>Click on <em>Ok</em> or press <em>Return</em> or <em>Shift-Return</em> to save the item and close the editor. Click on <em>Cancel</em> or press <em>Escape</em> to return to the editor.</p>
402 <p>If this is a new item and there are no errors, clicking on <em>Ok</em> or pressing <em>Return</em> will open a dialog to select the file to store the item with the current monthly file already selected. Pressing <em>Shift-Return</em> will bypass the file selection dialog and save to the current monthly file.</p>
403 <h2 id="editing-existing-items"><a href="#editing-existing-items">Editing Existing Items</a></h2>
404 <p>Double-clicking an item or pressing <em>Return</em> when an item is selected will open a context menu of possible actions:</p>
405 <ul>
406 <li>Copy</li>
407 <li>Delete</li>
408 <li>Edit</li>
409 <li>Edit file</li>
410 <li>Finish (unfinished tasks only)</li>
411 <li>Reschedule</li>
412 <li>Schedule new</li>
413 <li>Klone as timer</li>
414 <li>Open link (items with <code>@g</code> entries only)</li>
415 <li>Show user details (items with <code>@u</code> entries only)</li>
416 </ul>
417 <p>When either <em>Copy</em> or <em>Edit</em> is chosen for a repeating item, you can further choose:</p>
418 <ol style="list-style-type: decimal">
419 <li>this instance</li>
420 <li>this and all subsequent instances</li>
421 <li>all instances</li>
422 </ol>
423 <p>When <em>Delete</em> is chosen for a repeating item, a further choice is available:</p>
424 <ol start="4" style="list-style-type: decimal">
425 <li>all previous instances</li>
426 </ol>
427 <p>Tip: Use <em>Reschedule</em> to enter a date for an undated item or to change the scheduled date for the item or the selected instance of a repeating item. All you have to do is enter the new (fuzzy parsed) datetime.</p>
428 <h2 id="timers"><a href="#timers">Timers</a></h2>
429 <h3 id="countdown-timer"><a href="#countdown-timer">countdown timer</a></h3>
430 <p>To start a countdown timer press <em>z</em>, change the default number of minutes if necessary and press <em>Return</em>. The time that the timer will expire will be displayed in the status bar with a <code>-</code> prefix.</p>
431 <p>If <code>countdown_command</code> is given in <em>etmtk.cfg</em>, then it will be executed when the timer expires and the countdown message dialog will appear with the last chosen number of minutes as the default. You can either press <em>Return</em> to start another countdown or press <em>Escape</em> to cancel. If activated, the time that the countdown timer will expire will be displayed in the status bar.</p>
432 <h3 id="snooze-timer"><a href="#snooze-timer">snooze timer</a></h3>
433 <p>When the last alert of type <code>m</code> (message) is triggered for an item, the alert dialog that is displayed offers the option of snoozing, i.e., repeating the alert after a number of minutes you choose. If activated, the alert corresponding to snooze timer can be displayed along with any other remaining alerts using <em>Tools/Show remaining alerts</em>.</p>
434 <p>If <code>snooze_command</code> is given in <em>etmtk.cfg</em>, then it will be executed when the snooze timer expires and the alert message dialog will appear with the last chosen number of minutes as the default. You can either press <em>Return</em> to snooze again or press <em>Escape</em> to cancel.</p>
435 <h3 id="action-timer"><a href="#action-timer">action timer</a></h3>
436 <p>For people who bill their time or just like to keep track of how they spend their time, etm allows you to create an action by pressing <em>T</em> to start a timer. You will see an entry area with a list of any existing timers below. As you enter characters in the entry area, the list below will shrink to those whose beginnings match the characters you've entered. You can either select a timer from the list to start that timer or enter new name in the entry area to create and start a new timer. If a timer is running, it will automatically be paused when you start a new timer or switch to another timer.</p>
437 <p>Tip. Devoting time to two different clients this morning? Create two timers, one for each client and just switch back and forth using <em>T</em> when you switch from one client to the other. The timers are ordered in the list so that the most recently paused will be at the top.</p>
438 <p>While a timer is selected, the name, elapsed time and status - running or paused - is displayed in the status bar along with the number of active timers in parentheses. Pressing <em>I</em> toggles the timer between running and paused. You can configure etm's options to, for example, play one sound at intervals when a timer is running and another sound when the selected timer is paused and you can also specify the length of the interval and the volume.</p>
439 <p>When one or more timers are active and none are running, idle time is accumulated and displayed, by default, in the status bar. The idle time display can be toggled on and off and accumulated idle time can be reset to zero. It is also possible to transfer minutes from accumulated idle time to the current action timer.</p>
440 <p>When you have one or more active timers, you can press <em>Shift-T</em> to select one to finish. The selected timer will be paused if it is running and you will be presented with an entry area to create a new action with the following details already filled in: <code>~ timer name @s starting datetime @e elapsed time</code>. You can edit this entry in any way you like and then save it. When you do so, this timer will be removed from your list of active timers. You can also press <em>Shift-I</em> to select a timer to delete. Any accumulated time for the selected timer will be added to the accumulated idle time and the timer will be removed from the list of active timers.</p>
441 <p>It is also possible to start a timer by selecting an event, note, task or whatever, from one of <em>etm</em>'s Views and then choosing <em>Item/Klone as timer</em> from the menu or pressing <em>K</em>. A start timer dialog will be opened with the summary of the item you selected as the name together with any @-keys from the selected item that are listed in <code>action_keys</code> in your <code>etmtk.cfg</code>. You can edit this entry if you like or just press <em>Return</em> to accept it and start the timer. If you already have an active timer with this name, it will be restarted. Otherwise a new timer will be created and started.</p>
442 <p>Tip. Suppose you have a client, John Smith, and will be doing some work for him this morning relating to the project &quot;Motion&quot;. If you don't already have a task relating to this begin by creating one for today, June 16, 2015, by pressing <em>N</em> and entering</p>
443 <pre><code>- work @k SmithJohn:Motion @s +0</code></pre>
444 <p>The first activity related to this task involves a phone call to Sally. Select the task you just created and then press <em>K</em> to start a timer. Change <code>work</code> to <code>call Sally</code> and press <em>Return</em> to start the timer. When you've finished the call, press <em>I</em> to pause the timer. Based on this phone conversation, you decide the next activity should be to review Local Rule 4567, so once again select the task, press <em>K</em> and then change <code>work</code> to <code>review Local Rule 4567</code> and press <em>Return</em> to start this timer. When you're done, once again press <em>I</em> to pause this timer. You can repeat this process as often as you like. If you need to spend more time on 4567, press <em>T</em> and select it from the list of timers. When you're done, you can press <em>Shift-T</em> to select a timer from the list and finish it. Selecting the &quot;call Sally&quot; timer would produce an entry for the new action something like the following</p>
445 <pre><code>~ call Sally @k SmithJohn:Motion @s 2015-06-16 9:27am @e 12m</code></pre>
446 <p>You can edit this action if you like, but it is already set up to bill 12 minutes to the &quot;Motion&quot; project for client &quot;John Smith&quot; for an activity labeled &quot;call Sally&quot; and will appear as such in reports you generate for this period, so you can just save it as it is. Do the same with your other timers and you will have a complete record of time spent by client, project and activity for the day.</p>
447 <p>The state of your active timers is saved whenever you quit etm using by choosing <em>Quit</em> from the file menu or using the shortcut so that whenever you restart etm on the same day, the active timers will be restored.</p>
448 <p>If etm is running when a new day begins (midnight local time) or if you stop etm and start it again on a later date, in-basket entries for each of your active timers will be created in the relevant monthly file. These entries will be exactly the same as if you had finished each of the timers save for the use of <code>$</code> (in basket) rather than <code>~</code> (action) as the type character. You can edit or delete these as you wish. If a timer is selected (displayed in the status bar), then a new timer with the same name will be created for the new date but with zero elapsed time. If the timer was running at midnight, then the new timer will also be running. Idle time will automatically be reset to zero.</p>
449 <h2 id="sharing-with-other-calendar-applications"><a href="#sharing-with-other-calendar-applications">Sharing with other calendar applications</a></h2>
450 <p>Both export and import are supported for files in iCalendar format in ways that depend upon settings in <code>etmtk.cfg</code>.</p>
451 <p>If an absolute path is entered for <code>current_icsfolder</code>, for example, then <code>.ics</code> files corresponding to the entries in <code>calendars</code> will be created in this folder and updated as necessary. If there are no entries in calendars, then a single file, <code>all.ics</code>, will be created in this folder and updated as necessary.</p>
452 <p>If an item is selected, then pressing Shift-X in the gui will export the selected item in iCalendar format to <code>icsitem_file</code>. If an item is not selected, pressing Shift-X will export the active calendars in iCalendar format to <code>icscal_file</code>.</p>
453 <p>If <code>icssync_folder</code> is given, then files in this folder with the extension <code>.txt</code> and <code>.ics</code> will automatically kept concurrent using export to iCalendar and import from iCalendar. I.e., if the <code>.txt</code> file is more recent than than the <code>.ics</code> then the <code>.txt</code> file will be exported to the <code>.ics</code> file. On the other hand, if the <code>.ics</code> file is more recent then it will be imported to the <code>.txt</code> file. In either case, the contents of the file to be updated will be overwritten with the new content and the last acess/modified times for both will be set to the current time.</p>
454 <p>If <code>ics_subscriptions</code> is given, it should be a list of [URL, FILE] tuples. The URL is a calendar subscription, e.g., for a Google Calendar subscription the URL, FILE tuple would be something like:</p>
455 <pre><code> [&#39;https://www.google.com/calendar/ical/.../basic.ics&#39;, &#39;personal/google.txt&#39;]
456 </code></pre>
457 <p>With this entry, pressing Shift-M in the gui would import the calendar from the URL, convert it from ics to etm format and then write the result to <code>personal/google.txt</code> in the etm data directory. Note that this data file should be regarded as read-only since any changes made to it will be lost with the next subscription update.</p>
458 <p>Finally, when creating a new item in the etm editor, you can paste an iCalendar entry such as the following VEVENT:</p>
459 <pre><code>BEGIN:VCALENDAR
460 VERSION:2.0
461 PRODID:-//ForeTees//NONSGML v1.0//EN
462 CALSCALE:GREGORIAN
463 METHOD:PUBLISH
464 BEGIN:VEVENT
465 UID:[email protected]
466 DTSTAMP:20140624T070234
467 DTSTART:20140630T080000
468 SUMMARY:8:00 AM Tennis Reservation
469 LOCATION:Governors Club
470 DESCRIPTION: Player 1: ...
471
472 URL:http://www1.foretees.com/governorsclub
473 END:VEVENT
474 END:VCALENDAR</code></pre>
475 <p>When you press <em>Finish</em>, the entry will be converted to etm format</p>
476 <pre><code>^ 8:00 AM Tennis Reservation @s 2014-06-30 8am
477 @d Player 1: ...
478 @z US/Eastern</code></pre>
479 <p>and you can choose the file to hold it.</p>
480 <p>The following etm and iCalendar item types are supported:</p>
481 <ul>
482 <li><p>export from etm:</p>
483 <ul>
484 <li>occasion to VEVENT without end time</li>
485 <li>event (with or without extent) to VEVENT</li>
486 <li>action to VJOURNAL</li>
487 <li>note to VJOURNAL</li>
488 <li>task to VTODO</li>
489 <li>delegated task to VTODO</li>
490 <li>task group to VTODO (one for each job)</li>
491 </ul></li>
492 <li><p>import from iCalendar</p>
493 <ul>
494 <li>VEVENT without end time to occasion</li>
495 <li>VEVENT with end time to event</li>
496 <li>VJOURNAL to note</li>
497 <li>VTODO to task</li>
498 </ul></li>
499 </ul>
500 <h2 id="tools"><a href="#tools">Tools</a></h2>
501 <h3 id="date-and-time-calculator"><a href="#date-and-time-calculator">Date and time calculator</a></h3>
502 <p>Enter an expression of the form <code>x [+-] y</code> where <code>x</code> is a date and <code>y</code> is either a date or a time period if <code>-</code> is used and a time period if <code>+</code> is used. Both <code>x</code> and <code>y</code> can be followed by timezones, e.g.,</p>
503 <pre><code> 4/20 6:15p US/Central - 4/20 4:50p Asia/Shanghai:
504
505 14h25m</code></pre>
506 <p>or</p>
507 <pre><code> 4/20 4:50p Asia/Shanghai + 14h25m US/Central:
508
509 2014-04-20 18:15-0500</code></pre>
510 <p>Fuzzy dates (other than relative date expressions using <code>+</code> or <code>-</code>) can be used to specify date entries. The local timezone is assumed when none is given.</p>
511 <h3 id="available-dates-calculator"><a href="#available-dates-calculator">Available dates calculator</a></h3>
512 <p>Need to see a list of possible dates for a meeting? Get a list of busy dates from each of the members of the group and then use an expression of the form</p>
513 <pre><code>start; end; busy</code></pre>
514 <p>where start and end are dates and busy is a comma separated list of the busy dates or intervals for the members. E.g., if your group needs to meet between 6/1 and 6/30 and the members indicate that they cannot meet on 6/2, 6/14-6/22, 6/5-6/9, 6/11-6/15 or 6/17-6/29, then entering</p>
515 <pre><code>6/1; 6/30; 6/2, 6/14-6/22, 6/5-6/9, 6/11-6/15, 6/17-6/29</code></pre>
516 <p>would give:</p>
517 <pre><code>Sun Jun 01
518 Tue Jun 03
519 Wed Jun 04
520 Tue Jun 10
521 Mon Jun 30</code></pre>
522 <p>as the possible dates for the meeting.</p>
523 <h3 id="yearly-calendar"><a href="#yearly-calendar">Yearly calendar</a></h3>
524 <p>Gives a display such as</p>
525 <pre><code> January 2014 February 2014 March 2014
526 Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su
527 1 2 3 4 5 1 2 1 2
528 6 7 8 9 10 11 12 3 4 5 6 7 8 9 3 4 5 6 7 8 9
529 13 14 15 16 17 18 19 10 11 12 13 14 15 16 10 11 12 13 14 15 16
530 20 21 22 23 24 25 26 17 18 19 20 21 22 23 17 18 19 20 21 22 23
531 27 28 29 30 31 24 25 26 27 28 24 25 26 27 28 29 30
532 31
533
534 April 2014 May 2014 June 2014
535 Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su
536 1 2 3 4 5 6 1 2 3 4 1
537 7 8 9 10 11 12 13 5 6 7 8 9 10 11 2 3 4 5 6 7 8
538 14 15 16 17 18 19 20 12 13 14 15 16 17 18 9 10 11 12 13 14 15
539 21 22 23 24 25 26 27 19 20 21 22 23 24 25 16 17 18 19 20 21 22
540 28 29 30 26 27 28 29 30 31 23 24 25 26 27 28 29
541 30
542
543 July 2014 August 2014 September 2014
544 Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su
545 1 2 3 4 5 6 1 2 3 1 2 3 4 5 6 7
546 7 8 9 10 11 12 13 4 5 6 7 8 9 10 8 9 10 11 12 13 14
547 14 15 16 17 18 19 20 11 12 13 14 15 16 17 15 16 17 18 19 20 21
548 21 22 23 24 25 26 27 18 19 20 21 22 23 24 22 23 24 25 26 27 28
549 28 29 30 31 25 26 27 28 29 30 31 29 30
550
551 October 2014 November 2014 December 2014
552 Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su
553 1 2 3 4 5 1 2 1 2 3 4 5 6 7
554 6 7 8 9 10 11 12 3 4 5 6 7 8 9 8 9 10 11 12 13 14
555 13 14 15 16 17 18 19 10 11 12 13 14 15 16 15 16 17 18 19 20 21
556 20 21 22 23 24 25 26 17 18 19 20 21 22 23 22 23 24 25 26 27 28
557 27 28 29 30 31 24 25 26 27 28 29 30 29 30 31</code></pre>
558 <p>Left and right cursor keys move backward and forward a year at a time, respectively, and pressing the Home key returns to the current year.</p>
559 <h3 id="history-of-changes"><a href="#history-of-changes">History of changes</a></h3>
560 <p>This requires that either <em>git</em> or <em>mercurial</em> is installed. If an item is selected show a history of changes to the file that contains the item. Otherwise show a history of changes for all etm data files. In either case, choose an integer number of the most recent changes to show or choose 0 to show all changes.</p>
561 <h2 id="calendars"><a href="#calendars">Calendars</a></h2>
562 <p><em>etm</em> supports using the directory structure in your data directory to create separate <em>calendars</em>. For example, my wife, <em>erp</em>, and I, <em>dag</em>, separate personal and shared items with this structure:</p>
563 <pre><code>root etm data directory
564 personal
565 dag
566 erp
567 shared
568 holidays
569 birthdays
570 events</code></pre>
571 <p>Here, our etm configuration files are located in our home directories:</p>
572 <pre><code>~dag/.etm/etmtk.cfg
573 ~erp/.etm/etmtk.cfg</code></pre>
574 <p>Both contain <code>datadir</code> entries specifying the common root data directory mentioned above with these additional entries, respectively:</p>
575 <p>In <code>~dag/.etm/etmtk.cfg</code>:</p>
576 <pre><code> calendars
577 - [dag, true, personal/dag]
578 - [erp, false, personal/erp]
579 - [shared, true, shared]</code></pre>
580 <p>In <code>~erp/.etm/etmtk.cfg</code>:</p>
581 <pre><code> calendars
582 - [erp, true, personal/erp]
583 - [dag, false, personal/dag]
584 - [shared, true, shared]</code></pre>
585 <p>Thus, by default, both <em>dag</em> and <em>erp</em> see the entries from their personal files as well as the shared entries and each can optionally view the entries from the other's personal files as well. See the <a href="#preferences">Preferences</a> for details on the <code>calendars</code> entry.</p>
586 <p>Note for Windows users. The path separator needs to be &quot;escaped&quot; in the calendar paths, e.g., you should enter</p>
587 <pre><code> - [dag, true, personal\\dag]</code></pre>
588 <p>instead of</p>
589 <pre><code> - [dag, true, personal\dag]</code></pre>
590 <h2 id="data-organization"><a href="#data-organization">Data Organization</a></h2>
591 <p><em>etm</em> offers many ways of organizing your data. Perhaps, the most obvious is by <em>path</em>, i.e., the directory structure inside your data directory. <em>Path View</em> presents your data using this organization and, as noted above, calendars can be specified using this structure to allow you to choose quickly the calendars whose items will appear in other etm views as well.</p>
592 <p>The other hierarchical way of organizing your data uses the keywords you specify in your items. <em>Keyword View</em> presents your data using this organization. E.g.,</p>
593 <pre><code>- my task @k A:B:C
594 - my other task</code></pre>
595 <p>would appear in <em>Keyword View</em> as:</p>
596 <pre><code>A
597 B
598 C
599 - my task
600 ~ none ~
601 - my other task</code></pre>
602 <p>There are no hard and fast rules about how to use these hierarchies but the goal is a system that makes complementary uses of path and keyword and fits your needs. As with any filing system, planning and consistency are paramount. For example, one pattern of use for a business might be to use folders for departments and people and keywords for client and project.</p>
603 <p>It is also possible to add one or more tags to items and use <em>Tag View</em> to see the resulting organization. For example</p>
604 <pre><code>- item 1 @t red, white, blue
605 - item 2 @t red @t white
606 - item 3 @t white @t blue
607 - item 4 @t red, blue
608 - item 5 @t white</code></pre>
609 <p>would appear in <em>Tag View</em> as</p>
610 <pre><code>blue
611 - item 1
612 - item 3
613 - item 4
614 red
615 - item 1
616 - item 2
617 - item 4
618 white
619 - item 1
620 - item 2
621 - item 3
622 - item 5</code></pre>
623 <p>A final important way of organizing your data is provided by <em>context</em>. This is designed to support a GTD (Getting Things Done) common practice where possible contexts includes things like phone, errands, email and so forth. Undated tasks such as</p>
624 <pre><code>- pick up milk @c errands
625 - call Saul @c phone
626 - confirm schedule with Bob @c email</code></pre>
627 <p>would appear <em>Agenda View</em> as</p>
628 <pre><code>Next
629 email
630 - confirm schedule with Bob
631 errands
632 - pick up milk
633 phone
634 - call Saul
635 </code></pre>
636 <p>When you are next checking email, running errands, using the phone or whatever, you can check <em>Agenda View</em> to see what else might be accomplished at the same time. Note that, unlike tags, items can have at most a single context.</p>
637 <h2 id="colors"><a href="#colors">Colors</a></h2>
638 <p>Versions of etm after 3.1.39 support custom settings for both foreground (font) and background colors in the GUI. If a file named <code>colors.cfg</code> is found in the etm directory on startup, then the color settings in this file will override the default color settings. If this file is not found, then it will be created and populated with the default color settings. This file can be opened for editing in etm using <em>File/Open/Configuration file</em> from the main menu.</p>
639 <p>Example files for both dark and light backgrounds are available for download and customization. You can also download <code>colors.py</code>, set your preferred background color inside this script and then run it to see how the different font colors would appear against your chosen background. See also the setting for <code>style</code> under Preferences.</p>
640 <h2 id="internationalization"><a href="#internationalization">Internationalization</a></h2>
641 <p>Versions of etm after 3.1.20 provide support for languages beyond English.</p>
642 <h3 id="end-user"><a href="#end-user">End User</a></h3>
643 <p>If you, for example, are French and would like to use a version of etm in which menu items and standard phrases are French then you need to download the file <code>fr_FR.mo</code> either from <a href="https://github.com/dagraham/locale">GitHub locale</a> or from <a href="http://people.duke.edu/~dgraham/etmtk/languages">etmtk languages</a> and copy it to the following location in your <code>etmdir</code>:</p>
644 <pre><code>&lt;your etmdir&gt;
645 languages
646 fr_FR
647 LC_MESSAGES
648 fr_FR.mo
649 </code></pre>
650 <p>creating the corresponding directory structure when necessary. Be sure to get the file with the <code>.mo</code> extension, not the one with the <code>.po</code> extension. Next you need to create a file named <code>locale.cfg</code> in your <code>etmdir</code> with the line:</p>
651 <pre><code>[[fr_FR, UTF-8], QLocale.French, QLocale.France]</code></pre>
652 <p>perhaps modifying <code>UTF-8</code> to reflect your actual file encoding.</p>
653 <p>That's it! When you next start etm, <code>locale.cfg</code> will be read, <code>fr_FR</code> will be set as the desired locale and, if it can be found in the specified directory, the translations in <code>fr_FR.mo</code> will be loaded. Now, e.g, instead of <em>Agenda</em> you will see <em>Ordre du jour</em>.</p>
654 <h3 id="translator"><a href="#translator">Translator</a></h3>
655 <p>If you would like to assist in providing etm for a particular language, the process is pretty simple. You will need to download the program <a href="https://poedit.net/">poedit</a>. A free version is available for all major platforms.</p>
656 <p>In the etm source code, whenever a word or phrase appears that will be seen by the user, it is wrapped in a special format using <code>_()</code> so that, e.g., <code>Agenda</code> appears in the source code as <code>_(&quot;Agenda&quot;)</code>, <code>Today</code> as <code>_(&quot;Today&quot;)</code> and so forth.</p>
657 <p>When etm is being prepared for distribution a program called <em>gettext</em> is used to extract the <code>_()</code> entries from wherever they appear in the source and copy them to specially formatted file called <code>etm.pot</code>. This file can be then be used in the open-source program <em>poedit</em> to create a special translation files for different languages. This is how <code>fr_FR.po</code> was created, for example. Translation files are available from the above sources for French (<code>fr_FR.po</code>), German (<code>de_DE.po</code>), Spanish (<code>es_ES.po</code>) and Polish (<code>pl_PL.mo</code>). Alternatively, <code>etm.pot</code> is also available and you can use it to create whatever translation files you wish.</p>
658 <p>When a <code>.po</code> translation file is opened in <em>poedit</em>, two columns are displayed, the first lists the <code>_()</code> entries from the source code and the second lists the corresponding translation. E.g.,</p>
659 <pre><code> Agenda Ordre du jour
660 Today Aujourd’hui</code></pre>
661 <p>Initially, of course, the translation column is empty and it is the job of the translator to provide the translations. The <em>pro</em> version of <em>poedit</em> (~ $20) provides a third column with likely guesses about the appropriate translation. Most of the choices in <code>fr_FR.po</code>, in fact, came from accepting these best guesses since my knowledge of French is miniscule.</p>
662 <p>Whenever a <code>.po</code> file is saved in <em>poedit</em>, a compiled version with the extension <code>.mo</code> is automatically created. This compiled version is the one actually used by etm and the only file that an end user needs.</p>
663 <p>When an end user has followed the steps given above to enable support for a particular language, the actual translations will, of course be limited to those with &quot;second column choices&quot;. Extending the example above, suppose the translator has omitted some items</p>
664 <pre><code> Agenda Ordre du jour
665 Yesterday
666 Today Aujourd’hui
667 Tomorrow</code></pre>
668 <p>Then whenever <code>_(&quot;Agenda&quot;)</code> appears in the source, it will effectively be replaced by <code>&quot;Ordre du jour&quot;</code> and whenever <code>_(&quot;Yesterday&quot;)</code> appears, it will be replaced by <code>&quot;Yesterday&quot;</code>. I.e., when a translation is available, it will be used; otherwise, the original text will be used.</p>
669 <p>A translator can thus do as much or as little as he or she pleases and then send me the resulting <code>.po</code> file. I'll replace the current on-line version with this updated version so the next translator can improve upon prior results.</p>
670 <h1 id="item-types"><a href="#item-types">Item types</a></h1>
671 <p>There are several types of items in etm. Each item begins with a type character such as an asterisk (event) and continues on one or more lines either until the end of the file is reached or another line is found that begins with a type character. The type character for each item is followed by the item summary and then, perhaps, by one or more <code>@key value</code> pairs - see <a href="#keys">@-Keys</a> for details. The order in which such pairs are entered does not matter.</p>
672 <h2 id="action"><a href="#action">~ Action</a></h2>
673 <p>A record of the expenditure of time (<code>@e</code>) and/or money (<code>@x</code>). Actions are not reminders, they are instead records of how time and/or money was actually spent. Action lines begin with a tilde, <code>~</code>.</p>
674 <pre><code> ~ picked up lumber and paint @s mon 3p @e 1h15m @x 127.32</code></pre>
675 <p>Entries such as <code>@s mon 3p</code>, <code>@e 1h15m</code> and <code>@x 127.32</code> are discussed below under <em>Item details</em>. Action entries form the basis for time and expense billing using action type custom views - see <a href="#custom-view">Custom view</a> for details.</p>
676 <p>Tip: You can use either path or keyword or a combination of the two to organize your actions.</p>
677 <h2 id="event"><a href="#event">* Event</a></h2>
678 <p>Something that will happen on particular day(s) and time(s). Event lines begin with an asterick, <code>*</code>.</p>
679 <pre><code> * dinner with Karen and Al @s sat 7p @e 3h</code></pre>
680 <p>Events have a starting datetime, <code>@s</code> and an extent, <code>@e</code>. The ending datetime is given implicitly as the sum of the starting datetime and the extent. Events that span more than one day are possible, e.g.,</p>
681 <pre><code> * Sales conference @s 9a wed @e 2d8h</code></pre>
682 <p>begins at 9am on Wednesday and ends at 5pm on Friday.</p>
683 <p>An event without an <code>@e</code> entry or with <code>@e 0</code> is regarded as a <em>reminder</em> and, since there is no extent, will not be displayed in <em>busy times</em>.</p>
684 <h2 id="occasion"><a href="#occasion">^ Occasion</a></h2>
685 <p>Holidays, anniversaries, birthdays and such. Similar to an event with a date but no starting time and no extent. Occasions begin with a caret sign, <code>^</code>.</p>
686 <pre><code> ^ The !1776! Independence Day @s 2010-07-04 @r y &amp;M 7 &amp;m 4</code></pre>
687 <p>On July 4, 2013, this would appear as <code>The 237th Independence Day</code>. Here !1776!` is an example of an <em>anniversary substitution</em> - see <a href="#dates">Dates</a> for details.</p>
688 <h2 id="note"><a href="#note">! Note</a></h2>
689 <p>A record of some useful information. Note lines begin with an exclamation point, <code>!</code>.</p>
690 <pre><code>! xyz software @k software:passwords @d user: dnlg, pw: abc123def</code></pre>
691 <p>Tip: Since both the GUI and CLI note views group and sort by keyword, it is a good idea to use keywords to organize your notes.</p>
692 <h2 id="and-tasks"><a href="#and-tasks">-, % and + Tasks</a></h2>
693 <p>Tasks are reminders of something that needs to be done. There are three possible type characters for tasks: <code>-</code>, <code>%</code> and <code>+</code>; these are discussed below. Each of these can be further distinguished by whether or not the task has entries for <code>@e</code> and/or <code>@s</code>.</p>
694 <p>When an <code>@e</code> (extent) is provided for any type of task, it is regarded as an estimate of the time required to complete the task.</p>
695 <ul>
696 <li><p>Tasks without an <code>@s</code> entry have no due date and are to be done whenever convenient.</p></li>
697 <li><p>Tasks with an <code>@s</code> entry that specifies <code>12am</code> (or <code>0h</code>) as the starting time are to be completed on or before the date specified.</p></li>
698 <li><p>Tasks with an <code>@s</code> entry that specifies a starting time <em>other than</em> <code>12am</code> (or <code>0h</code>) but without an <code>@e</code> entry are to be completed on or before the date <em>and time</em> specified. These will be displayed in etm Agenda and Day views before other tasks, sorted by and displaying the starting time.</p></li>
699 <li><p>Tasks with an <code>@s</code> entry that specifies a starting time <em>other than</em> <code>12am</code> (or <code>0h</code>) and with an <code>@e</code> entry are to be completed during the period that extends from the starting time until <code>@e</code> after the starting time. These will be displayed in etm Agenda and Day views before other tasks, sorted by and displaying the time period in the same manner as events. This period will be regarded as busy time and treated as such by etm in, e.g., Week view. [Tip: Use a non-midnight starting time and an extent when you want to block off a specific period to complete a task.]</p></li>
700 </ul>
701 <h3 id="task"><a href="#task">- Task</a></h3>
702 <p>This is the basic task and begins with a minus sign, <code>-</code>.</p>
703 <pre><code>- pay bills @s Oct 25</code></pre>
704 <p>A task with an <code>@s</code> entry becomes due on that date and time and past due when that date has passed. If the task also has an <code>@b</code> begin-by entry, then advance warnings of the task will begin appearing the specified number of days before the task is due.</p>
705 <h3 id="delegated-task"><a href="#delegated-task">% Delegated task</a></h3>
706 <p>A task that is assigned to someone else, usually the person designated in an <code>@u</code> entry. Delegated tasks begin with a percent sign, <code>%</code>.</p>
707 <pre><code> % make reservations for trip @u joe @s fri</code></pre>
708 <h3 id="task-group"><a href="#task-group">+ Task group</a></h3>
709 <p>A collection of related tasks, some of which may be prerequisite for others. Task groups begin with a plus sign, <code>+</code>.</p>
710 <pre><code> + dog house
711 @j pickup lumber and paint &amp;q 1
712 @j cut pieces &amp;q 2
713 @j assemble &amp;q 3
714 @j paint &amp;q 4</code></pre>
715 <p>Note that a task group is a single item and is treated as such. E.g., if any job is selected for editing then the entire group is displayed.</p>
716 <p>Individual jobs are given by the <code>@j</code> entries. The <em>queue</em> entries, <code>&amp;q</code>, set the order --- tasks with smaller &amp;q values are prerequisites for subsequent tasks with larger &amp;q values. In the example above &quot;pickup lumber and paint&quot; does not have any prerequisites. &quot;Pickup lumber and paint&quot;, however, is a prerequisite for &quot;cut pieces&quot; which, in turn, is a prerequisite for &quot;assemble&quot;. &quot;Assemble&quot;, &quot;cut pieces&quot; and &quot;pickup lumber and paint&quot; are all prerequisites for &quot;paint&quot;.</p>
717 <h2 id="in-basket"><a href="#in-basket">$ In basket</a></h2>
718 <p>A quick, don't worry about the details item to be edited later when you have the time. In basket entries begin with a dollar sign, <code>$</code>.</p>
719 <pre><code> $ joe 919 123-4567</code></pre>
720 <p>If you create an item using <em>etm</em> and forget to provide a type character, an <code>$</code> will automatically be inserted.</p>
721 <h2 id="someday-maybe"><a href="#someday-maybe">? Someday maybe</a></h2>
722 <p>Something you don't want to forget about altogether but don't want to appear on your next or scheduled lists. Someday maybe items begin with a question mark, <code>?</code>. They are displayed under the heading <em>Someday</em> in Agenda view so that you can easily review them whenever you like.</p>
723 <pre><code> ? lose weight and exercise more</code></pre>
724 <h2 id="comment"><a href="#comment"># Comment</a></h2>
725 <p>Comments begin with a hash mark, <code>#</code>. Such items are ignored by etm save for appearing in the path view. Stick a hash mark in front of any item that you don't want to delete but don't want to see in your other views.</p>
726 <h2 id="defaults"><a href="#defaults">= Defaults</a></h2>
727 <p>Default entries begin with an equal sign, <code>=</code>. These entries consist of <code>@key value</code> pairs which then become the defaults for subsequent entries in the same file until another <code>=</code> entry is reached.</p>
728 <p>Suppose, for example, that a particular file contains items relating to &quot;project_a&quot; for &quot;client_1&quot;. Then entering</p>
729 <pre><code>= @k client_1:project_a</code></pre>
730 <p>on the first line of the file and</p>
731 <pre><code>=</code></pre>
732 <p>on the twentieth line of the file would set the default keyword for entries between the first and twentieth line in the file.</p>
733 <h1 id="keys"><a href="#keys">@Keys</a></h1>
734 <h2 id="a-alert"><a href="#a-alert"><span class="citation">@a</span> alert</a></h2>
735 <p>The specification of the alert(s) to use with the item. One or more alerts can be specified in an item. E.g.,</p>
736 <pre><code>@a 10m, 5m
737 @a 1h: s</code></pre>
738 <p>would trigger the alert(s) specified by <code>default_alert</code> in your <code>etmtk.cfg</code> at 10 and 5 minutes before the starting time and a (s)ound alert one hour before the starting time.</p>
739 <p>The alert</p>
740 <pre><code>@a 2d: e; [email protected], [email protected]; filepath1, filepath2</code></pre>
741 <p>would send an email to the two listed recipients exactly 2 days (48 hours) before the starting time of the item with the item summary as the subject, with file1 and file2 as attachments and with the body of the message composed using <code>email_template</code> from your <code>etmtk.cfg</code>.</p>
742 <p>Similarly, the alert</p>
743 <pre><code>@a 10m: t; [email protected], [email protected]</code></pre>
744 <p>would send a text message 10 minutes before the starting time of the item to the two mobile phones listed (using 10 digit area code and carrier mms extension) together with the settings for <code>sms</code> in <code>etmtk.cfg</code>. If no numbers are given, the number and mms extension specified in <code>sms.phone</code> will be used. Here are the mms extensions for the major US carriers:</p>
745 <pre><code>Alltel @message.alltel.com
746 AT&amp;T @txt.att.net
747 Nextel @messaging.nextel.com
748 Sprint @messaging.sprintpcs.com
749 SunCom @tms.suncom.com
750 T-mobile @tmomail.net
751 VoiceStream @voicestream.net
752 Verizon @vtext.com</code></pre>
753 <p>Finally,</p>
754 <pre><code>@a 0: p; program_path</code></pre>
755 <p>would execute <code>program_path</code> at the starting time of the item.</p>
756 <p>The format for each of these:</p>
757 <pre><code>@a &lt;trigger times&gt; [: action [; arguments]]</code></pre>
758 <p>In addition to the default action used when the optional <code>: action</code> is not given, there are the following possible values for <code>action</code>:</p>
759 <pre><code>d Execute alert_displaycmd in etmtk.cfg.
760
761 e; recipients[;attachments] Send an email to recipients
762 (a comma separated list of email addresses) optionally
763 attaching attachments (a comma separated list of file paths).
764 The item summary is used as the subject of the email and
765 the expanded value of email_template from etmtk.cfg as the
766 body. If there is an entry for @i (invitees), these email
767 addresses will be appended to the list of recipients.
768
769 m Display an internal etm message box using alert_template.
770
771 p; process Execute the command given by process.
772
773 s Execute alert_soundcmd in etmtk.cfg.
774
775 t [; phonenumbers] Send text messages to phonenumbers
776 (a comma separated list of 10 digit phone numbers with the
777 sms extension of the carrier appended) with the expanded
778 value of sms.message as the text message.
779
780 v Execute alert_voicecmd in etmtk.cfg.</code></pre>
781 <p>Note: either <code>e</code> or <code>p</code> can be combined with other actions in a single alert but not with one another.</p>
782 <h2 id="b-beginby"><a href="#b-beginby"><span class="citation">@b</span> beginby</a></h2>
783 <p>An integer number of days before the starting date time at which to begin displaying <em>begin by</em> notices. When notices are displayed they will be sorted by the item's starting datetime and then by the item's priority, if any.</p>
784 <h2 id="c-context"><a href="#c-context"><span class="citation">@c</span> context</a></h2>
785 <p>Intended primarily for tasks to indicate the context in which the task can be completed. Common contexts include home, office, phone, computer and errands. The &quot;next view&quot; supports this usage by showing undated tasks, grouped by context. If you're about to run errands, for example, you can open the &quot;next view&quot;, look under &quot;errands&quot; and be sure that you will have no &quot;wish I had remembered&quot; regrets.</p>
786 <h2 id="d-description"><a href="#d-description"><span class="citation">@d</span> description</a></h2>
787 <p>An elaboration of the details of the item to complement the summary.</p>
788 <h2 id="e-extent"><a href="#e-extent"><span class="citation">@e</span> extent</a></h2>
789 <p>A time period string such as <code>1d2h</code> (1 day 2 hours). For an action, this would be the elapsed time. For a task, this could be an estimate of the time required for completion. For an event, this would be the duration. The ending time of the event would be this much later than the starting datetime.</p>
790 <p>Tip. Need to determine the appropriate value for <code>@e</code> for a flight when you have the departure and arrival datetimes but the timezones are different? The date calculator (shortcut Shift-D) will accept timezone information so that, e.g., entering the arrival time minus the departure time</p>
791 <pre><code>4/20 6:15p US/Central - 4/20 4:50p Asia/Shanghai</code></pre>
792 <p>into the calculator would give</p>
793 <pre><code>14h25m</code></pre>
794 <p>as the flight time.</p>
795 <h2 id="f-done-due"><a href="#f-done-due"><span class="citation">@f</span> done[; due]</a></h2>
796 <p>Datetimes; tasks, delegated tasks and task groups only. When a task is completed an <code>@f done</code> entry is added to the task. When the task has a due date, <code>; due</code> is appended to the entry. Similarly, when a job from a task group is completed in etm, an <code>&amp;f done</code> or <code>&amp;f done; due</code> entry is appended to the job and it is removed from the list of prerequisites for the other jobs. In both cases <code>done</code> is the completion datetime and <code>due</code>, if added, is the datetime that the task or job was due. The completed task or job is shown as finished on the completion date. When the last job in a task group is finished an <code>@f done</code> or <code>@f done; due</code> entry is added to the task group itself reflecting the datetime that the last job was done and, if the task group is repeating, the <code>&amp;f</code> entries are removed from the individual jobs.</p>
797 <p>Another step is taken for repeating task groups. When the first job in a task group is completed, the <code>@s</code> entry is updated using the setting for <code>@o</code> (above) to show the next datetime the task group is due and the <code>@f</code> entry is removed from the task group. This means when some, but not all of the jobs for the current repetition have been completed, only these job completions will be displayed. Otherwise, when none of the jobs for the current repetition have been completed, then only that last completion of the task group itself will be displayed.</p>
798 <p>Consider, for example, the following repeating task group which repeats monthly on the last weekday on or before the 25th.</p>
799 <pre><code>+ pay bills @s 11/23 @f 10/24;10/25
800 @r m &amp;w MO,TU,WE,TH,FR &amp;m 23,24,25 &amp;s -1
801 @j organize bills &amp;q 1
802 @j pay on-line bills &amp;q 3
803 @j get stamps, envelopes, checkbook &amp;q 1
804 @j write checks &amp;q 2
805 @j mail checks &amp;q 3</code></pre>
806 <p>Here &quot;organize bills&quot; and &quot;get stamps, envelopes, checkbook&quot; have no prerequisites. &quot;Organize bills&quot;, however, is a prerequisite for &quot;pay on-line bills&quot; and both &quot;organize bills&quot; and &quot;get stamps, envelops, checkbook&quot; are prerequisites for &quot;write checks&quot; which, in turn, is a prerequisite for &quot;mail checks&quot;.</p>
807 <p>The repetition that was due on 10/25 was completed on 10/24. The next repetition was due on 11/23 and, since none of the jobs for this repetition have been completed, the completion of the group on 10/24 and the list of jobs due on 11/23 will be displayed initially. The following sequence of screen shots show the effect of completing the jobs for the 11/23 repetition one by one on 11/27.</p>
808 <h2 id="g-goto"><a href="#g-goto"><span class="citation">@g</span> goto</a></h2>
809 <p>The path to a file or a URL to be opened using the system default application when the user presses <em>G</em> in the GUI. E.g., here's a task to join the etm discussion group with the URL of the group as the link. In this case, pressing <em>G</em> would open the URL in your default browser.</p>
810 <pre><code>- join the etm discussion group @s +1/1
811 @g http://groups.google.com/group/eventandtaskmanager/topics
812 </code></pre>
813 <p>Template expansion is supported so it is also possible to use a <code>mailto</code> link such as the following:</p>
814 <pre><code>- the subject of the email @d The body of the email
815 @g mailto:[email protected][email protected]\&amp;subject=!summary!\&amp;body=!d!
816 </code></pre>
817 <p>Pressing <em>G</em> with this item selected would create a new message in your email application with &quot;To: [email protected]&quot;, &quot;Cc: [email protected]&quot;, &quot;Subject: The subject of the email&quot; and &quot;The body of the email&quot; already entered.</p>
818 <p>Tip. Have a pdf file with the agenda for a meeting? Stick an <span class="citation">@g</span> entry with the path to the file in the event you create for the meeting. Then whenever the meeting is selected, <em>G</em> will bring up the agenda.</p>
819 <h2 id="h-history"><a href="#h-history"><span class="citation">@h</span> history</a></h2>
820 <p>Used internally with task groups to track completion done;due pairs.</p>
821 <h2 id="i-invitees"><a href="#i-invitees"><span class="citation">@i</span> invitees</a></h2>
822 <p>An email address or a list of email addresses for people participating in the item. These email addresses will be appended to the list of recipients for email alerts.</p>
823 <h2 id="j-job"><a href="#j-job"><span class="citation">@j</span> job</a></h2>
824 <p>Component tasks or jobs within a task group are given by <code>@j job</code> entries. <code>@key value</code> entries prior to the first <code>@j</code> become the defaults for the jobs that follow. <code>&amp;key value</code> entries given in jobs use <code>&amp;</code> rather than <code>@</code> and apply only to the specific job.</p>
825 <p>Many key-value pairs can be given either in the group task using <code>@</code> or in the component jobs using <code>&amp;</code>:</p>
826 <pre><code>@c or &amp;c context
827 @d or &amp;d description
828 @e or &amp;e extent
829 @f or &amp;f done[; due] datetime
830 @k or &amp;k keyword
831 @l or &amp;l location
832 @u or &amp;u user</code></pre>
833 <p>The key-value pair <code>&amp;h</code> is used internally to track job done;due completions in task groups.</p>
834 <p>The key-value pair <code>&amp;q</code> (queue position) can <em>only</em> be given in component jobs where it is required. Key-values other than <code>&amp;q</code> and those listed above, can <em>only</em> be given in the initial group task entry and their values are inherited by the component jobs.</p>
835 <h2 id="k-keyword"><a href="#k-keyword"><span class="citation">@k</span> keyword</a></h2>
836 <p>A heirarchical classifier for the item. Intended for actions to support time billing where a common format would be <code>client:job:category</code>. <em>etm</em> treats such a keyword as a heirarchy so that an action report grouped by month and then keyword might appear as follows</p>
837 <pre><code> 27.5h) Client 1 (3)
838 4.9h) Project A (1)
839 15h) Project B (1)
840 7.6h) Project C (1)
841 24.2h) Client 2 (3)
842 3.1h) Project D (1)
843 21.1h) Project E (2)
844 5.1h) Category a (1)
845 16h) Category b (1)
846 4.2h) Client 3 (1)
847 8.7h) Client 4 (2)
848 2.1h) Project F (1)
849 6.6h) Project G (1)</code></pre>
850 <p>An arbitrary number of heirarchical levels in keywords is supported.</p>
851 <h2 id="l-location"><a href="#l-location"><span class="citation">@l</span> location</a></h2>
852 <p>The location at which, for example, an event will take place.</p>
853 <h2 id="m-memo"><a href="#m-memo"><span class="citation">@m</span> memo</a></h2>
854 <p>Further information about the item not included in the summary or the description. Since the summary is used as the subject of an email alert and the description is commonly included in the body of an email alert, this field could be used for information not to be included in the email.</p>
855 <h2 id="n-noshow"><a href="#n-noshow"><span class="citation">@n</span> noshow</a></h2>
856 <p>Only tasks of type &quot;-&quot; or &quot;%&quot;. A value or list of values from <em>d</em>, <em>k</em>, and <em>t</em>, that specify views in which the task should <em>not</em> be shown.</p>
857 <p>This can provide a &quot;poor man's cron&quot; in which a repeating task with a process alert could be used to run a process at specified times without cluttering the etm views unnecessarily. It could also be used to trigger a periodic reminder during the day to, e.g., take a prescription medication, without filling your day lists.</p>
858 <p>Tip. Want to be reminded when a meeting should end without seeing an extra reminder for the meeting in your day lists? Create a task with a sound alert at the ending time and then add &quot;<span class="citation">@n</span> d&quot; to hide it from your day lists and, optionally, &quot;<span class="citation">@o</span> s&quot; to automatically remove past due instances.</p>
859 <h4 id="d-day"><a href="#d-day">d) day</a></h4>
860 <p>Do not display the task in the day views: agenda, week and month.</p>
861 <p>Since an undated task would not appear in week or month view, using &quot;d&quot; for such a task only prevents it from being displayed in the &quot;next&quot; section of agenda view. Using &quot;d&quot; for a dated task, on the other hand, prevents it from being displayed in the day lists of agenda, week and month views as well as the &quot;now&quot; section of agenda view.</p>
862 <h4 id="k-keyword-1"><a href="#k-keyword-1">k) keyword</a></h4>
863 <p>Do not display the task in keyword view.</p>
864 <h4 id="t-tag"><a href="#t-tag">t) tag</a></h4>
865 <p>Do not display the task in tag view.</p>
866 <p>E.g., with the entry &quot;<span class="citation">@n</span> d, k, t&quot;, a task would appear only in path view.</p>
867 <h2 id="o-overdue"><a href="#o-overdue"><span class="citation">@o</span> overdue</a></h2>
868 <p>Repeating tasks only. One of the following choices: k) keep, r) restart, or s) skip. Details below.</p>
869 <h2 id="p-priority"><a href="#p-priority"><span class="citation">@p</span> priority</a></h2>
870 <p>Either 0 (no priority) or an integer between 1 (highest priority) and 9 (lowest priority). Primarily used with undated tasks.</p>
871 <h2 id="q-datetime"><a href="#q-datetime"><span class="citation">@q</span> datetime</a></h2>
872 <p>Used to provide a timestamp for an item. Intended primarily to provide a first-in-first-out queue for related, undated tasks. E.g., the following</p>
873 <pre><code>- first in queue @c queue @q 2015-10-06 10a @z US/Eastern
874 - second in queue @c queue @q 2015-10-07 12p @z US/Eastern
875 - third in queue @c queue @q 2015-10-08 9a @z US/Eastern
876 - fourth in queue @c queue @q 2015-10-09 8a @z US/Eastern</code></pre>
877 <p>would appear in Agenda view at 11:35am on 2015-10-09 grouped by the context &quot;queue&quot; and ordered by age with the oldest first:</p>
878 <pre><code>Next
879 ...
880 queue
881 - first in queue 3d2h
882 - second in queue 1d23h35m
883 - third in queue 1d2h35m
884 - fourth in queue 3h35m </code></pre>
885 <h2 id="r-repetition-rule"><a href="#r-repetition-rule"><span class="citation">@r</span> repetition rule</a></h2>
886 <p>The specification of how an item is to repeat. Repeating items <strong>must</strong> have an <code>@s</code> entry as well as one or more <code>@r</code> entries. Generated datetimes are those satisfying any of the <code>@r</code> entries and falling <strong>on or after</strong> the datetime given in <code>@s</code>. Note that the datetime given in <code>@s</code> will only be included if it matches one of the datetimes generated by the <code>@r</code> entry.</p>
887 <p>A repetition rule begins with</p>
888 <pre><code>@r frequency</code></pre>
889 <p>where <code>frequency</code> is one of the following characters:</p>
890 <pre><code>y yearly
891 m monthly
892 w weekly
893 d daily
894 h hourly
895 n minutely
896 l list (a list of datetimes will be provided using @+)</code></pre>
897 <p>The <code>@r frequency</code> entry can, optionally, be followed by one or more <code>&amp;key value</code> pairs:</p>
898 <pre><code>&amp;i: interval (positive integer, default = 1) E.g, with frequency w, interval
899 3 would repeat every three weeks.
900 &amp;t: total (positive integer) Include no more than this number of repetitions.
901 &amp;s: bysetpos (integer). When multiple dates satisfy the rule, take the date
902 from this position in the list, e.g, &amp;s 1 would choose the first element
903 and &amp;s -1 the last. See the payday example below for an illustration of
904 bysetpos.
905 &amp;u: until (datetime) Only include repetitions with starting times falling
906 on before this datetime.
907 &amp;M: bymonth (1, 2, ..., 12)
908 &amp;m: bymonthday (1, 2, ..., 31) Use, e.g., -1 for the last day of the month.
909 &amp;W: byweekno (1, 2, ..., 53)
910 &amp;w: byweekday (*English* weekday abbreviation SU ... SA). Use, e.g., 3WE
911 for the 3rd Wednesday or -1FR, for the last Friday in the month.
912 &amp;h: byhour (0 ... 23)
913 &amp;n: byminute (0 ... 59)
914 &amp;E: byeaster (integer number of days before, &lt; 0, or after, &gt; 0, Easter)</code></pre>
915 <p>Repetition examples:</p>
916 <ul>
917 <li><p>1st and 3rd Wednesdays of each month.</p>
918 <pre><code>^ 1st and 3rd Wednesdays
919 @r m &amp;w 1WE, 3WE</code></pre></li>
920 <li><p>Payday (an occasion) on the last week day of each month. (The <code>&amp;s -1</code> entry extracts the last date which is both a weekday and falls within the last three days of the month.)</p>
921 <pre><code>^ payday @s 2010-07-01
922 @r m &amp;w MO, TU, WE, TH, FR &amp;m -1, -2, -3 &amp;s -1</code></pre></li>
923 <li><p>Take a prescribed medication daily (an event) from the 23rd through the 27th of the current month at 10am, 2pm, 6pm and 10pm and trigger an alert zero minutes before each event.</p>
924 <pre><code>* take Rx @d 10a 23 @r d &amp;u 11p 27 &amp;h 10, 14 18, 22 @a 0</code></pre></li>
925 <li><p>Vote for president (an occasion) every four years on the first Tuesday after a Monday in November. (The <code>&amp;m range(2,9)</code> requires the month day to fall within 2 ... 8 and thus, combined with <code>&amp;w TU</code> to be the first Tuesday following a Monday.)</p>
926 <pre><code>^ Vote for president @s 2012-11-06
927 @r y &amp;i 4 &amp;M 11 &amp;m range(2,9) &amp;w TU</code></pre></li>
928 <li><p>Ash Wednesday (an occasion) that occurs 46 days before Easter each year.</p>
929 <p>^ Ash Wednesday 2010-01-01 <span class="citation">@r</span> y &amp;E -46</p></li>
930 <li><p>Easter Sunday (an occasion).</p>
931 <p>^ Easter Sunday 2010-01-01 <span class="citation">@r</span> y &amp;E 0</p></li>
932 </ul>
933 <p>A repeating <em>task</em> may optionally also include an <code>@o &lt;k|s|r&gt;</code> entry (default = k):</p>
934 <ul>
935 <li><p><code>@o k</code>: Keep the current due date if it becomes overdue and use the next due date from the recurrence rule if it is finished early. This would be appropriate, for example, for the task 'file tax return'. The return due April 15, 2009 must still be filed even if it is overdue and the 2010 return won't be due until April 15, 2010 even if the 2009 return is finished early.</p></li>
936 <li><p><code>@o s</code>: Skip overdue due dates and set the due date for the next repetition to the first due date from the recurrence rule on or after the current date. This would be appropriate, for example, for the task 'put out the trash' since there is no point in putting it out on Tuesday if it's picked up on Mondays. You might just as well wait until the next Monday to put it out. There's also no point in being reminded until the next Monday.</p></li>
937 <li><p><code>@o r</code>: Restart the repetitions based on the last completion date. Suppose you want to mow the grass once every ten days and that when you mowed yesterday, you were already nine days past due. Then you want the next due date to be ten days from yesterday and not today. Similarly, if you were one day early when you mowed yesterday, then you would want the next due date to be ten days from yesterday and not ten days from today.</p></li>
938 </ul>
939 <h2 id="s-starting-datetime"><a href="#s-starting-datetime"><span class="citation">@s</span> starting datetime</a></h2>
940 <p>When an action is started, an event begins or a task is due.</p>
941 <h2 id="t-tags"><a href="#t-tags"><span class="citation">@t</span> tags</a></h2>
942 <p>A tag or list of tags for the item.</p>
943 <h2 id="u-user"><a href="#u-user"><span class="citation">@u</span> user</a></h2>
944 <p>Intended to specify the person to whom a delegated task is assigned. Could also be used in actions to indicate the person performing the action.</p>
945 <h2 id="v-action_rates-key"><a href="#v-action_rates-key"><span class="citation">@v</span> action_rates key</a></h2>
946 <p>Actions only. A key from <code>action_rates</code> in your <code>etmtk.cfg</code> to apply to the value of <code>@e</code>. Used in actions to apply a billing rate to time spent in an action. E.g., with</p>
947 <pre><code> minutes: 6
948 action_rates:
949 br1: 45.0
950 br2: 60.0</code></pre>
951 <p>then entries of <code>@v br1</code> and <code>@e 2h25m</code> in an action would entail a value of <code>45.0 * 2.5 = 112.50</code>.</p>
952 <h2 id="w-action_markups-key"><a href="#w-action_markups-key"><span class="citation">@w</span> action_markups key</a></h2>
953 <p>A key from <code>action_markups</code> in your <code>etmtk.cfg</code> to apply to the value of <code>@x</code>. Used in actions to apply a markup rate to expense in an action. E.g., with</p>
954 <pre><code> weights:
955 mr1: 1.5
956 mr2: 10.0</code></pre>
957 <p>then entries of <code>@w mr1</code> and <code>@x 27.50</code> in an action would entail a value of <code>27.50 * 1.5 = 41.25</code>.</p>
958 <h2 id="x-expense"><a href="#x-expense"><span class="citation">@x</span> expense</a></h2>
959 <p>Actions only. A currency amount such as <code>27.50</code>. Used in conjunction with <span class="citation">@w</span> above to bill for action expenditures.</p>
960 <h2 id="z-time-zone"><a href="#z-time-zone"><span class="citation">@z</span> time zone</a></h2>
961 <p>The time zone of the item, e.g., US/Eastern. The starting and other datetimes in the item will be interpreted as belonging to this time zone.</p>
962 <p>Tip. You live in the US/Eastern time zone but a flight that departs Sydney on April 20 at 9pm bound for New York with a flight duration of 14 hours and 30 minutes. The hard way is to convert this to US/Eastern time and enter the flight using that time zone. The easy way is to use Australia/Sydney and skip the conversion:</p>
963 <pre><code>* Sydney to New York @s 2014-04-23 9pm @e 14h30m @z Australia/Sydney</code></pre>
964 <p>This flight will be displayed while you're in the Australia/Sydney time zone as extending from 9pm on April 23 until 11:30am on April 24, but in the US/Eastern time zone it will be displayed as extending from 7am until 9:30pm on April 23.</p>
965 <h2 id="include"><a href="#include">@+ include</a></h2>
966 <p>A datetime, e.g., <code>@+ 20150420T0930</code>, or list of datetimes to be added to the repetitions generated by <code>@r rrule</code> entries. If only a date is provided, 12:00am is assumed.</p>
967 <h2 id="exclude"><a href="#exclude">@- exclude</a></h2>
968 <p>A datetime or list of datetimes to be removed from the repetitions generated by <code>@r rrule</code> entries. If only a date is provided, 12:00am is assumed.</p>
969 <p>Note that to exclude a datetime from the recurrence rule, the @- datetime <em>must exactly match both the date and time</em> generated by one of the <code>@r rrule</code> entries.</p>
970 <p>Example of using <code>@-</code> and <code>@+</code>:</p>
971 <pre><code>@s 2014-02-19 4pm
972 @r m &amp;w 3WE
973 @+ 20140924T1600, 20141029T1600
974 @- 20140917T1600, 20141015T1600</code></pre>
975 <h1 id="dates"><a href="#dates">Dates</a></h1>
976 <h2 id="fuzzy-dates"><a href="#fuzzy-dates">Fuzzy dates</a></h2>
977 <p>When either a <em>datetime</em> or an <em>time period</em> is to be entered, special formats are used in <em>etm</em>. Examples include entering a starting datetime for an item using <code>@s</code> and jumping to a date using Ctrl-J.</p>
978 <p>Suppose, for example, that it is currently 8:30am on Friday, February 15, 2013. Then, <em>fuzzy dates</em> would expand into the values illustrated below.</p>
979 <pre><code> mon 2p or mon 14h 2:00pm Monday, February 19
980 fri 12:00am Friday, February 15
981 9a -1/1 or 9h -1/1 9:00am Tuesday, January 1
982 +2/15 12:00am Monday, April 15 2013
983 8p +7 or 20h +7 8:00pm Friday, February 22
984 -14 8:30am Friday, February 1
985 now 8:30am Friday, February 15</code></pre>
986 <p>Note that expressions using <code>+</code> or <code>-</code> give datetimes relative to the current datetime.</p>
987 <p>12am is the default time when a time is not explicity entered. E.g., <code>+2/15</code> in the examples above gives 12:00am on April 15.</p>
988 <p>To avoid ambiguity, always append either 'a', 'p' or 'h' when entering an hourly time, e.g., use <code>1p</code> or <code>13h</code>.</p>
989 <h2 id="time-periods"><a href="#time-periods">Time periods</a></h2>
990 <p>Time periods are entered using the format <code>WwDdHhMm</code> where W, D, H and M are integers and w, d, h and m refer to weeks, days, hours and minutes respectively. For example:</p>
991 <pre><code> 2h30m 2 hours, 30 minutes
992 2w3d 2 weeks, 3 days
993 45m 45 minutes</code></pre>
994 <p>As an example, if it is currently 8:50am on Friday February 15, 2013, then entering <code>now + 2d4h30m</code> into the date calculator would give <code>2013-02-17 1:20pm</code>.</p>
995 <p>Tip. Need to schedule a reminder in 15 minutes? Use <code>@s +15m</code>.</p>
996 <h2 id="time-zones"><a href="#time-zones">Time zones</a></h2>
997 <p>Dates and times are always stored in <em>etm</em> data files as times in the time zone given by the entry for <code>@z</code>. On the other hand, dates and times are always displayed in <em>etm</em> using the local time zone of the system.</p>
998 <p>For example, if it is currently 8:50am EST on Friday February 15, 2013, and an item is saved on a system in the <code>US/Eastern</code> time zone containing the entry</p>
999 <pre><code>@s now @z Australia/Sydney</code></pre>
1000 <p>then the data file would contain</p>
1001 <pre><code>@s 2013-02-16 12:50am @z Australia/Sydney</code></pre>
1002 <p>but this item would be displayed as starting at <code>8:50am 2013-02-15</code> on the system in the <code>US/Eastern</code> time zone.</p>
1003 <p>Tip. Need to determine the flight time when the departing timezone is different that the arriving timezone? The date calculator (shortcut Shift-D) will accept timezone information so that, e.g., entering the arrival time minus the departure time</p>
1004 <pre><code>4/20 6:15p US/Central - 4/20 4:50p Asia/Shanghai</code></pre>
1005 <p>into the calculator would give</p>
1006 <pre><code>14h25m</code></pre>
1007 <p>as the flight time.</p>
1008 <h2 id="anniversary-substitutions"><a href="#anniversary-substitutions">Anniversary substitutions</a></h2>
1009 <p>An anniversary substitution is an expression of the form <code>!YYYY!</code> that appears in an item summary. Consider, for example, the occassion</p>
1010 <pre><code>^ !2010! anniversary @s 2011-02-20 @r y</code></pre>
1011 <p>This would appear on Feb 20 of 2011, 2012, 2013 and 2014, respectively, as <em>1st anniversary</em>, <em>2nd anniversary</em>, <em>3rd anniversary</em> and <em>4th anniversary</em>. The suffixes, <em>st</em>, <em>nd</em> and so forth, depend upon the translation file for the locale.</p>
1012 <h2 id="easter"><a href="#easter">Easter</a></h2>
1013 <p>An expression of the form <code>easter(yyyy)</code> can be used as a date specification in <code>@s</code> entries and in the datetime calculator. E.g.</p>
1014 <pre><code>@s easter(2014) 4p</code></pre>
1015 <p>would expand to <code>2014-04-20 4pm</code>. Similarly, in the date calculator</p>
1016 <pre><code>easter(2014) - 48d</code></pre>
1017 <p>(Rose Monday) would return <code>2014-03-03</code>. In repeating items <code>easter(yyyy)</code> is replaced by <code>&amp;E</code>, e.g.,</p>
1018 <pre><code>^ Easter Sunday @s 2010-01-01 @r y &amp;E 0
1019 ^ Ash Wednesday @s 2010-01-01 @r y &amp;E -46
1020 ^ Rose Monday @s 2010-01-01 @r y &amp;E -48</code></pre>
1021 <h1 id="preferences"><a href="#preferences">Preferences</a></h1>
1022 <p>Configuration options are stored in a file named <code>etmtk.cfg</code> which, by default, belongs to the folder <code>.etm</code> in your home directory. When this file is edited in <em>etm</em> (Shift Ctrl-P), your changes become effective as soon as they are saved --- you do not need to restart <em>etm</em>. These options are listed below with illustrative entries and brief descriptions.</p>
1023 <h2 id="template-expansions"><a href="#template-expansions">Template expansions</a></h2>
1024 <p>The following template expansions can be used in <code>alert_displaycmd</code>, <code>alert_template</code>, <code>alert_voicecmd</code>, <code>email_template</code>, <code>sms_message</code> and <code>sms_subject</code> below.</p>
1025 <ul>
1026 <li><code>!summary!</code></li>
1027 </ul>
1028 <p>the item's summary (this will be used as the subject of email and message alerts)</p>
1029 <ul>
1030 <li><code>!start_date!</code></li>
1031 </ul>
1032 <p>the starting date of the event</p>
1033 <ul>
1034 <li><code>!start_time!</code></li>
1035 </ul>
1036 <p>the starting time of the event</p>
1037 <ul>
1038 <li><code>!time_span!</code></li>
1039 </ul>
1040 <p>the time span of the event (see below)</p>
1041 <ul>
1042 <li><code>!alert_time!</code></li>
1043 </ul>
1044 <p>the time the alert is triggered</p>
1045 <ul>
1046 <li><code>!time_left!</code></li>
1047 </ul>
1048 <p>the time remaining until the event starts</p>
1049 <ul>
1050 <li><code>!when!</code></li>
1051 </ul>
1052 <p>the time remaining until the event starts as a sentence (see below)</p>
1053 <ul>
1054 <li><code>!next!</code></li>
1055 </ul>
1056 <p>how long before the starting time the next alert will be triggered</p>
1057 <ul>
1058 <li><code>!next_alert!</code></li>
1059 </ul>
1060 <p>how long before the starting time the next alert will be triggered as a sentence (see below)</p>
1061 <ul>
1062 <li><code>!d!</code></li>
1063 </ul>
1064 <p>the item's <code>@d</code> (description)</p>
1065 <ul>
1066 <li><code>!l!</code></li>
1067 </ul>
1068 <p>the item's <code>@l</code> (location)</p>
1069 <p>The value of <code>!next!</code> for some illustrative cases:</p>
1070 <ul>
1071 <li><p>The current alert is the last</p>
1072 <p>!next!: None</p>
1073 <p>!next_alert!: 'This is the last alert.'</p></li>
1074 <li><p>The next alert is at the start time</p>
1075 <p>!next!: 'at the start time'</p>
1076 <p>!next_alert!: 'The next alert is at the start time.'</p></li>
1077 <li><p>The next alert is 5 minutes before the start time:</p>
1078 <p>!next!: '5 minutes before the start time'</p>
1079 <p>!next_alert!: 'The next alert is 5 minutes before the start time.'</p></li>
1080 </ul>
1081 <p>The value of <code>!time_span!</code> depends on the starting and ending datetimes. Here are some examples:</p>
1082 <ul>
1083 <li><p>if the start and end <em>datetimes</em> are the same (zero extent): <code>10am Wed, Aug 4</code></p></li>
1084 <li><p>else if the times are different but the <em>dates</em> are the same: <code>10am - 2pm Wed, Aug 4</code></p></li>
1085 <li><p>else if the dates are different: <code>10am Wed, Aug 4 - 9am Thu, Aug 5</code></p></li>
1086 <li><p>additionally, the year is appended if a date falls outside the current year:</p>
1087 <pre><code>10am - 2pm Thu, Jan 3 2013
1088 10am Mon, Dec 31 - 2pm Thu, Jan 3 2013</code></pre></li>
1089 </ul>
1090 <p>Here are values of <code>!time_left!</code> and <code>!when!</code> for some illustrative periods:</p>
1091 <ul>
1092 <li><p><code>2d3h15m</code></p>
1093 <pre><code>time_left : &#39;2 days 3 hours 15 minutes&#39;
1094 when : &#39;2 days 3 hours 15 minutes from now&#39;</code></pre></li>
1095 <li><p><code>20m</code></p>
1096 <pre><code>time_left : &#39;20 minutes&#39;
1097 when : &#39;20 minutes from now&#39;</code></pre></li>
1098 <li><p><code>0m</code></p>
1099 <pre><code>time_left : &#39;&#39;
1100 when : &#39;now&#39;</code></pre></li>
1101 </ul>
1102 <p>Note that 'now', 'from now', 'days', 'day', 'hours' and so forth are determined by the translation file in use.</p>
1103 <h2 id="options"><a href="#options">Options</a></h2>
1104 <h3 id="action_interval"><a href="#action_interval">action_interval</a></h3>
1105 <pre><code>action_interval: 1</code></pre>
1106 <p>Every <code>action_interval</code> minutes, execute <code>action_timercmd</code> when the timer is running and <code>action_pausecmd</code> when the timer is paused. Choose zero to disable executing these commands.</p>
1107 <h3 id="action_keys"><a href="#action_keys">action_keys</a></h3>
1108 <pre><code>action_keys: &quot;k&quot;</code></pre>
1109 <p>When klone is used to create an action timer, copy the values of the @-keys in this string from the item to the timer. With the default, &quot;k&quot;, klone will copy the item's <span class="citation">@k</span> entry, if there is one, in addition to the summary when creating the action. Replacing &quot;k&quot;, with &quot;c&quot; would cause klone to copy the item's <span class="citation">@c</span> entry in addition to the summary. With &quot;ck&quot;, both the <span class="citation">@c</span> and <span class="citation">@k</span> entries would be copied. Any key that is valid for an action can be used.</p>
1110 <p>E.g., when</p>
1111 <pre><code>- my task @c my context @k my keyword @t my tag</code></pre>
1112 <p>is selected, then the default would create a timer with the name <code>my task @k my keyword</code>.</p>
1113 <h3 id="action_markups"><a href="#action_markups">action_markups</a></h3>
1114 <pre><code>action_markups:
1115 default: 1.0
1116 mu1: 1.5
1117 mu2: 2.0</code></pre>
1118 <p>Possible markup rates to use for <code>@x</code> expenses in actions. An arbitrary number of rates can be entered using whatever labels you like. These labels can then be used in actions in the <code>@w</code> field so that, e.g.,</p>
1119 <pre><code>... @x 25.80 @w mu1 ...</code></pre>
1120 <p>in an action would give this expansion in an action template:</p>
1121 <pre><code>!expense! = 25.80
1122 !charge! = 38.70</code></pre>
1123 <h3 id="action_minutes"><a href="#action_minutes">action_minutes</a></h3>
1124 <pre><code>action_minutes: 6</code></pre>
1125 <p>Round action times up to the nearest <code>action_minutes</code> in action custom view. Possible choices are 1, 6, 12, 15, 30 and 60. With 1, no rounding is done and times are reported as integer minutes. Otherwise, the prescribed rounding is done and times are reported as floating point hours.</p>
1126 <h3 id="action_rates"><a href="#action_rates">action_rates</a></h3>
1127 <pre><code>action_rates:
1128 default: 30.0
1129 br1: 45.0
1130 br2: 60.0</code></pre>
1131 <p>Possible billing rates to use for <code>@e</code> times in actions. An arbitrary number of rates can be entered using whatever labels you like. These labels can then be used in the <code>@v</code> field in actions so that, e.g., with <code>action_minutes: 6</code> then:</p>
1132 <pre><code>... @e 75m @v br1 ...</code></pre>
1133 <p>in an action would give these expansions in an action template:</p>
1134 <pre><code>!hours! = 1.3
1135 !value! = 58.50</code></pre>
1136 <p>If the label <code>default</code> is used, the corresponding rate will be used when <code>@v</code> is not specified in an action.</p>
1137 <p>Note that etm accumulates group totals from the <code>time</code> and <code>value</code> of individual actions. Thus</p>
1138 <pre><code>... @e 75m @v br1 ...
1139 ... @e 60m @v br2 ...</code></pre>
1140 <p>would aggregate to</p>
1141 <pre><code>!hours! = 2.3 (= 1.3 + 1)
1142 !value! = 118.50 (= 1.3 * 45.0 + 1 * 60.0)</code></pre>
1143 <h3 id="action_template"><a href="#action_template">action_template</a></h3>
1144 <pre><code>action_template: &#39;!hours!h) !label! (!count!)&#39;</code></pre>
1145 <p>Used for action type custom view. With the above settings for <code>action_minutes</code> and <code>action_template</code>, a custom view might appear as follows:</p>
1146 <pre><code>27.5h) Client 1 (3)
1147 4.9h) Project A (1)
1148 15h) Project B (1)
1149 7.6h) Project C (1)
1150 24.2h) Client 2 (3)
1151 3.1h) Project D (1)
1152 21.1h) Project E (2)
1153 5.1h) Category a (1)
1154 16h) Category b (1)
1155 4.2h) Client 3 (1)
1156 8.7h) Client 4 (2)
1157 2.1h) Project F (1)
1158 6.6h) Project G (1)</code></pre>
1159 <p>Available template expansions for <code>action_template</code> include:</p>
1160 <ul>
1161 <li><p><code>!label!</code>: the item or group label.</p></li>
1162 <li><p><code>!count!</code>: the number of children represented in the reported item or group.</p></li>
1163 <li><p><code>!minutes!:</code> the total time from <code>@e</code> entries in minutes rounded up using the setting for <code>action_minutes</code>.</p></li>
1164 <li><p><code>!hours!</code>: if action_minutes = 1, the time in hours and minutes. Otherwise, the time in floating point hours.</p></li>
1165 <li><p><code>!value!</code>: the billing value of the rounded total time. Requires an action entry such as <code>@v br1</code> and a setting for <code>action_rates</code>.</p></li>
1166 <li><p><code>!expense!</code>: the total expense from <code>@x</code> entries.</p></li>
1167 <li><p><code>!charge!</code>: the billing value of the total expense. Requires an action entry such as <code>@w mu1</code> and a setting for <code>action_markups</code>.</p></li>
1168 <li><p><code>!total!</code>: the sum of <code>!value!</code> and <code>!charge!</code>.</p></li>
1169 </ul>
1170 <p>Note: when aggregating amounts in action type custom view, billing and markup rates are applied first to times and expenses for individual actions and the resulting amounts are then aggregated. Similarly, when times are rounded up, the rounding is done for individual actions and the results are then aggregated.</p>
1171 <h3 id="action_timer"><a href="#action_timer">action_timer</a></h3>
1172 <pre><code>action_timer:
1173 paused: &#39;play ~/.etm/sounds/timer_paused.wav&#39;
1174 running: &#39;play ~/.etm/sounds/timer_running.wav&#39;</code></pre>
1175 <p>The command <code>running</code> is executed every <code>action_interval</code> minutes whenever the action timer is running and <code>paused</code> every minute when the action timer is paused.</p>
1176 <h3 id="agenda"><a href="#agenda">agenda</a></h3>
1177 <pre><code>agenda_days: 2
1178 agenda_colors: 2
1179 agenda_indent: 2
1180 agenda_omit: [ac, fn, ns]
1181 agenda_width1: 43
1182 agenda_width2: 17</code></pre>
1183 <p>Sets the number of days to display in agenda view and other parameters affecting the display in the CLI. The colors setting only affects output to current_html. Items in agenda_omit will not be displayed in the agenda day list. Possible choices include:</p>
1184 <ul>
1185 <li><p>ac: actions</p></li>
1186 <li><p>by: begin by warnings</p></li>
1187 <li><p>fn: finished tasks</p></li>
1188 <li><p>ns: notes (dated)</p></li>
1189 <li><p>oc: occasions</p></li>
1190 </ul>
1191 <h3 id="alert_default"><a href="#alert_default">alert_default</a></h3>
1192 <pre><code>alert_default: [m]</code></pre>
1193 <p>The alert or list of alerts to be used when an alert is specified for an item but the type is not given. Possible values for the list include:</p>
1194 <ul>
1195 <li><p>d: display (requires <code>alert_displaycmd</code>)</p></li>
1196 <li><p>m: message (using <code>alert_template</code>)</p></li>
1197 <li><p>s: sound (requires <code>alert_soundcmd</code>)</p></li>
1198 <li><p>v: voice (requires <code>alert_voicecmd</code>)</p></li>
1199 </ul>
1200 <h3 id="alert_displaycmd"><a href="#alert_displaycmd">alert_displaycmd</a></h3>
1201 <pre><code>alert_displaycmd: growlnotify -t !summary! -m &#39;!time_span!&#39;</code></pre>
1202 <p>The command to be executed when <code>d</code> is included in an alert. Possible template expansions are discussed at the beginning of this tab.</p>
1203 <h3 id="alert_soundcmd"><a href="#alert_soundcmd">alert_soundcmd</a></h3>
1204 <pre><code>alert_soundcmd: &#39;play ~/.etm/sounds/etm_alert.wav&#39;</code></pre>
1205 <p>The command to execute when <code>s</code> is included in an alert. Possible template expansions are discussed at the beginning of this tab.</p>
1206 <h3 id="alert_template"><a href="#alert_template">alert_template</a></h3>
1207 <pre><code>alert_template: &#39;!time_span!\n!l!\n\n!d!&#39;</code></pre>
1208 <p>The template to use for the body of <code>m</code> (message) alerts. See the discussion of template expansions at the beginning of this tab for other possible expansion items.</p>
1209 <h3 id="alert_voicecmd"><a href="#alert_voicecmd">alert_voicecmd</a></h3>
1210 <pre><code>alert_voicecmd: say -v &#39;Alex&#39; &#39;!summary! begins !when!.&#39;</code></pre>
1211 <p>The command to be executed when <code>v</code> is included in an alert. Possible expansions are are discussed at the beginning of this tab.</p>
1212 <h3 id="alert_wakecmd"><a href="#alert_wakecmd">alert_wakecmd</a></h3>
1213 <pre><code>alert_wakecmd: ~/bin/SleepDisplay -w</code></pre>
1214 <p>If given, this command will be issued to &quot;wake up the display&quot; before executing <code>alert_displaycmd</code>.</p>
1215 <h3 id="ampm"><a href="#ampm">ampm</a></h3>
1216 <pre><code>ampm: true</code></pre>
1217 <p>Use ampm times if true and twenty-four hour times if false. E.g., 2:30pm (true) or 14:30 (false).</p>
1218 <h3 id="completions_width"><a href="#completions_width">completions_width</a></h3>
1219 <pre><code>completions_width: 36</code></pre>
1220 <p>The width in characters of the auto completions popup window.</p>
1221 <h3 id="calendars-1"><a href="#calendars-1">calendars</a></h3>
1222 <pre><code>calendars:
1223 - [dag, true, personal/dag]
1224 - [erp, false, personal/erp]
1225 - [shared, true, shared]</code></pre>
1226 <p>These are (label, default, path relative to <code>datadir</code>) tuples to be interpreted as separate calendars. Those for which default is <code>true</code> will be displayed as default calendars. E.g., with the <code>datadir</code> below, <code>dag</code> would be a default calendar and would correspond to the absolute path <code>/Users/dag/.etm/data/personal/dag</code>. With this setting, the calendar selection dialog would appear as follows:</p>
1227 <p>When non-default calendars are selected, busy times in the &quot;week view&quot; will appear in one color for events from default calendars and in another color for events from non-default calendars.</p>
1228 <p><strong>Only data files that belong to one of the calendar directories or their subdirectories will be accessible within etm.</strong></p>
1229 <h3 id="cfg_files"><a href="#cfg_files">cfg_files</a></h3>
1230 <pre><code>cfg_files:
1231 - completions: []
1232 - reports: []
1233 - users: []</code></pre>
1234 <p>Each of the three list brackets can contain one or more comma separated <em>absolute</em> file paths. Additionally, paths corresponding to active calendars in the <code>datadir</code> directory are searched for files named <code>completions.cfg</code>, <code>reports.cfg</code> and <code>users.cfg</code> and these are processed in addition to the ones from <code>cfg_files</code>.</p>
1235 <p>Note. Windows users should place each absolute path in quotes and escape backslashes, i.e., use <code>\\</code> anywhere <code>\</code> appears in a path.</p>
1236 <ul>
1237 <li><p>Completions</p>
1238 <p>Each line in a completions file provides a possible completion when using the editor. E.g. with these completions</p>
1239 <pre><code>@c computer
1240 @c home
1241 @c errands
1242 @c office
1243 @c phone
1244 @z US/Eastern
1245 @z US/Central
1246 @z US/Mountain
1247 @z US/Pacific
1248 [email protected]</code></pre>
1249 <p>entering, for example, &quot;<span class="citation">@c</span>&quot; in the editor and pressing Ctrl-Space, would popup a list of possible completions. Choosing the one you want and pressing <em>Return</em> would insert it and close the popup.</p>
1250 <p>Up and down arrow keys change the selection and either <em>Tab</em> or <em>Return</em> inserts the selection.</p></li>
1251 <li><p>Reports</p>
1252 <p>Each line in a reports file provides a possible reports specification. These are available when using the CLI <code>m</code> command and in the GUI custom view. See <a href="#custom-view">Custom view</a> for details.</p></li>
1253 <li><p>Users</p>
1254 <p>User files contain user (contact) information in a free form, text database. Each entry begins with a unique key for the person and is followed by detail lines each of which begins with a minus sign and contains some detail about the person that you want to record. Any detail line containing a colon should be quoted, e.g.,</p>
1255 <pre><code>jbrown:
1256 - Brown, Joe
1257 - [email protected]
1258 - &#39;home: 123 456-7890&#39;
1259 - &#39;birthday: 1978-12-14&#39;
1260 dcharles:
1261 - Charles, Debbie
1262 - [email protected]
1263 - &#39;cell: 456 789-0123&#39;
1264 - &#39;spouse: Rebecca&#39;</code></pre>
1265 <p>Keys from this file are added to auto-completions so that if you type, say, <code>@u jb</code> and press <em>Ctrl-Space</em>, then <code>@u jbrown</code> would be offered for completion.</p>
1266 <p>If an item with the entry <code>@u jbrown</code> is selected in the GUI, you can press &quot;u&quot; to see a popup with the details:</p>
1267 <pre><code>Brown, Joe
1268 [email protected]
1269 home: 123 456-7890
1270 birthday: 1978-12-14</code></pre></li>
1271 </ul>
1272 <h3 id="countdown-timer-1"><a href="#countdown-timer-1">countdown timer</a></h3>
1273 <pre><code>countdown_command: &#39;&#39;
1274 countdown_minutes: 10</code></pre>
1275 <p>If <code>countdown_command</code> is given, it will be executed when the timer expires; otherwise a beep will be sounded. The default number of minutes for a countdown is given by <code>countdown_minutes</code>. When a timer is active, the time that the timer will expire is displayed in the status bar using the format -H:M:S(am/pm). When a countdown and a snooze timer are both active, the one that will expire first is displayed in the status bar.</p>
1276 <h3 id="current-files"><a href="#current-files">current files</a></h3>
1277 <pre><code>current_htmlfile: &#39;&#39;
1278 current_textfile: &#39;&#39;
1279 current_icsfolder: &#39;&#39;
1280 current_indent: 3
1281 current_opts: &#39;&#39;
1282 current_width1: 40
1283 current_width2: 17</code></pre>
1284 <p>If absolute file paths are entered for <code>current_textfile</code> and/or <code>current_htmlfile</code>, then these files will be created and automatically updated by etm as as plain text or html files, respectively. If <code>current_opts</code> is given then the file will contain a report using these options; otherwise the file will contain an agenda. Indent and widths are taken from these setting with other settings, including color, from <em>report</em> or <em>agenda</em>, respectively.</p>
1285 <p>If an absolute path is entered for <code>current_icsfolder</code>, then ics files corresponding to the entries in <code>calendars</code> will be created in this folder and updated as necessary. If there are no entries in calendars, then a single file, <code>all.ics</code>, will be created in this folder and updated as necessary.</p>
1286 <p>Hint: fans of geektool can use the shell command <code>cat &lt;current_textfile&gt;</code> to have the current agenda displayed on their desktops.</p>
1287 <h3 id="datadir"><a href="#datadir">datadir</a></h3>
1288 <pre><code>datadir: ~/.etm/data</code></pre>
1289 <p>All etm data files are in this directory.</p>
1290 <h3 id="dayfirst"><a href="#dayfirst">dayfirst</a></h3>
1291 <pre><code>dayfirst: false</code></pre>
1292 <p>If dayfirst is False, the MM-DD-YYYY format will have precedence over DD-MM-YYYY in an ambiguous date. See also <code>yearfirst</code>.</p>
1293 <h3 id="details_rows"><a href="#details_rows">details_rows</a></h3>
1294 <pre><code>details_rows: 4</code></pre>
1295 <p>The number of rows to display in the bottom, details panel of the main window.</p>
1296 <h3 id="display_idletime"><a href="#display_idletime">display_idletime</a></h3>
1297 <pre><code>display_idletime: True</code></pre>
1298 <p>Show idle time in the status bar by default if True. Display can be toggled on and off in the File/Timer menu. Idle time is accumulated when there are are one or more active timers and none are running.</p>
1299 <h3 id="early_hour"><a href="#early_hour">early_hour</a></h3>
1300 <pre><code>early_hour: 6</code></pre>
1301 <p>When scheduling an event or action with a starting time that begins before this hour, append the query &quot;Is __ the starting time you intended?&quot; to the confirmation. Use 0 to disable this warning altogether. The default, 6, will warn for starting times <em>before</em> 6am.</p>
1302 <h3 id="edit_cmd"><a href="#edit_cmd">edit_cmd</a></h3>
1303 <pre><code>edit_cmd: ~/bin/vim !file! +!line!</code></pre>
1304 <p>This command is used in the command line version of etm to create and edit items. When the command is expanded, <code>!file!</code> will be replaced with the complete path of the file to be edited and <code>!line!</code> with the starting line number in the file. If the editor will open a new window, be sure to include the command to wait for the file to be closed before returning, e.g., with vim:</p>
1305 <pre><code>edit_cmd: ~/bin/gvim -f !file! +!line!</code></pre>
1306 <p>or with sublime text:</p>
1307 <pre><code>edit_cmd: ~/bin/subl -n -w !file!:!line!</code></pre>
1308 <h3 id="email_template"><a href="#email_template">email_template</a></h3>
1309 <pre><code>email_template: &#39;Time: !time_span!
1310 Locaton: !l!
1311
1312
1313 !d!&#39;</code></pre>
1314 <p>Note that two newlines are required to get one empty line when the template is expanded. This template might expand as follows:</p>
1315 <pre><code> Time: 1pm - 2:30pm Wed, Aug 4
1316 Location: Conference Room
1317
1318 &lt;contents of @d&gt;</code></pre>
1319 <p>See the discussion of template expansions at the beginning of this tab for other possible expansion items.</p>
1320 <h3 id="etmdir"><a href="#etmdir">etmdir</a></h3>
1321 <pre><code>etmdir: ~/.etm</code></pre>
1322 <p>Absolute path to the directory for etmtk.cfg and other etm configuration files.</p>
1323 <h3 id="exportdir"><a href="#exportdir">exportdir</a></h3>
1324 <pre><code>exportdir: ~/.etm</code></pre>
1325 <p>Absolute path to the directory for exported CSV files.</p>
1326 <h3 id="encoding"><a href="#encoding">encoding</a></h3>
1327 <pre><code>encoding: {file: utf-8, gui: utf-8, term: utf-8}</code></pre>
1328 <p>The encodings to be used for file IO, the GUI and terminal IO.</p>
1329 <h3 id="filechange_alert"><a href="#filechange_alert">filechange_alert</a></h3>
1330 <pre><code>filechange_alert: &#39;play ~/.etm/sounds/etm_alert.wav&#39;</code></pre>
1331 <p>The command to be executed when etm detects an external change in any of its data files. Leave this command empty to disable the notification.</p>
1332 <h3 id="fontsize_fixed"><a href="#fontsize_fixed">fontsize_fixed</a></h3>
1333 <pre><code>fontsize_fixed: 0</code></pre>
1334 <p>Use this font size in the details panel, editor and reports. Use 0 to keep the system default.</p>
1335 <h3 id="fontsize_tree"><a href="#fontsize_tree">fontsize_tree</a></h3>
1336 <pre><code>fontsize_tree: 0</code></pre>
1337 <p>Use this font size in the gui treeviews. Use 0 to keep the system default.</p>
1338 <p>Tip: Leave the font sizes set to 0 and run etm with logging level 2 to see the system default sizes.</p>
1339 <h3 id="freetimes"><a href="#freetimes">freetimes</a></h3>
1340 <pre><code>freetimes:
1341 opening: 480 # 8*60 minutes after midnight = 8am
1342 closing: 1020 # 17*60 minutes after midnight = 5pm
1343 minimum: 30 # 30 minutes
1344 buffer: 15 # 15 minutes</code></pre>
1345 <p>Only display free periods between <em>opening</em> and <em>closing</em> that last at least <em>minimum</em> minutes and preserve at least <em>buffer</em> minutes between events. Note that each of these settings must be an <em>interger</em> number of minutes.</p>
1346 <p>E.g., with the above settings and these busy periods:</p>
1347 <pre><code>Busy periods in Week 16: Apr 14 - 20, 2014
1348 ------------------------------------------
1349 Mon 14: 10:30am-11:00am; 12:00pm-1:00pm; 5:00pm-6:00pm
1350 Tue 15: 9:00am-10:00am
1351 Wed 16: 8:30am-9:30am; 2:00pm-3:00pm; 5:00pm-6:00pm
1352 Thu 17: 11:00am-12:00pm; 6:00pm-7:00pm; 7:00pm-9:00pm
1353 Fri 18: 3:00pm-4:00pm; 5:00pm-6:00pm
1354 Sat 19: 9:00am-10:30am; 7:30pm-10:00pm</code></pre>
1355 <p>This would be the corresponding list of free periods:</p>
1356 <pre><code>Free periods in Week 16: Apr 14 - 20, 2014
1357 ------------------------------------------
1358 Mon 14: 8:00am-10:15am; 11:15am-11:45am; 1:15pm-4:45pm
1359 Tue 15: 8:00am-8:45am; 10:15am-5:00pm
1360 Wed 16: 9:45am-1:45pm; 3:15pm-4:45pm
1361 Thu 17: 8:00am-10:45am; 12:15pm-5:00pm
1362 Fri 18: 8:00am-2:45pm; 4:15pm-4:45pm
1363 Sat 19: 8:00am-8:45am; 10:45am-5:00pm
1364 Sun 20: 8:00am-5:00pm
1365 ----------------------------------------
1366 Only periods of at least 30 minutes are displayed.</code></pre>
1367 <p>When displaying free times in week view you will be prompted for the shortest period to display using the setting for <em>minimum</em> as the default.</p>
1368 <p>Tip: Need to tell someone when you're free in a given week? Jump to that week in week view, press <em>Ctrl-F</em>, set the minimum period and then copy and paste the resulting list into an email.</p>
1369 <h3 id="icalendar-settings"><a href="#icalendar-settings">iCalendar settings</a></h3>
1370 <h4 id="icscal_file"><a href="#icscal_file">icscal_file</a></h4>
1371 <p>If an item is not selected, pressing Shift-X in the gui will export the active calendars in iCalendar format to this file.</p>
1372 <pre><code>icscal_file: ~/.etm/etmcal.ics</code></pre>
1373 <h4 id="icsitem_file"><a href="#icsitem_file">icsitem_file</a></h4>
1374 <p>If an item is selected, pressing Shift-X in the gui will export the selected item in iCalendar format to this file.</p>
1375 <pre><code>icsitem_file: ~/.etm/etmitem.ics</code></pre>
1376 <h4 id="icssync_folder"><a href="#icssync_folder">icssync_folder</a></h4>
1377 <pre><code>icssync_folder: &#39;&#39;</code></pre>
1378 <p>A relative path from <code>etmdata</code> to a folder. If given, files in this folder with the extension <code>.txt</code> and <code>.ics</code> will automatically kept concurrent using export to iCalendar and import from iCalendar. I.e., if the <code>.txt</code> file is more recent than than the <code>.ics</code> then the <code>.txt</code> file will be exported to the <code>.ics</code> file. On the other hand, if the <code>.ics</code> file is more recent then it will be imported to the <code>.txt</code> file. In either case, the contents of the file to be updated will be overwritten with the new content and the last acess/modified times for both will be set to the current time.</p>
1379 <p>Note that the calendar application you use to modify the <code>.ics</code> file will impose restrictions on the subsequent content of the <code>.txt</code> file. E.g., if the <code>.txt</code> file has a note entry, then this note will be exported by etm as a VJOURNAL entry to the <code>.ics</code> file. But VJOURNAL entries are not be recognized by many (most) calendar apps. When importing this file to such an application, the note will be omitted and thus will be missing from the <code>.ics</code> file after the next export from the application. The note will then be missing from the <code>.txt</code> file as well after the next automatic update. Restricting the content to events should be safe with with any calendar application.</p>
1380 <p>Additionally, if an absolute path is entered for <code>current_icsfolder</code>, then ics files corresponding to the entries in <code>calendars</code> will be created in this folder and updated as necessary. If there are no entries in calendars, then a single file, <code>all.ics</code>, will be created in this folder and updated as necessary.</p>
1381 <h4 id="ics_subscriptions"><a href="#ics_subscriptions">ics_subscriptions</a></h4>
1382 <pre><code>ics_subscriptions: []</code></pre>
1383 <p>A list of (URL, path) tuples for automatic updates. The URL is a calendar subscription, e.g., for a Google Calendar subscription the entry might be something like:</p>
1384 <pre><code>ics_subscriptions:
1385 - [&#39;https://www.google.com/calendar/ical/.../basic.ics&#39;, &#39;personal/dag/google.txt&#39;]
1386 </code></pre>
1387 <p>With this entry, pressing Shift-M in the gui would import the calendar from the URL, convert it from ics to etm format and then write the result to <code>personal/google.txt</code> in the etm data directory. Note that this data file should be regarded as read-only since any changes made to it will be lost with the next subscription update.</p>
1388 <h3 id="local_timezone"><a href="#local_timezone">local_timezone</a></h3>
1389 <pre><code>local_timezone: US/Eastern</code></pre>
1390 <p>This timezone will be used as the default when a value for <code>@z</code> is not given in an item.</p>
1391 <h3 id="message_last"><a href="#message_last">message_last</a></h3>
1392 <pre><code>message_last: 0</code></pre>
1393 <p>The number of seconds to display the message alert for an item before closing it when it is the last. With 0, the message dialog will be kept open indefinitely.</p>
1394 <h3 id="message_next"><a href="#message_next">message_next</a></h3>
1395 <pre><code>message_next: 0</code></pre>
1396 <p>The number of seconds to display the message alert for an item before closing it when it is not the last alert. With 0, the message dialog will be kept open indefinitely.</p>
1397 <h3 id="monthly"><a href="#monthly">monthly</a></h3>
1398 <pre><code>monthly: monthly</code></pre>
1399 <p>Relative path from <code>datadir</code>. With the settings above and for <code>datadir</code> the suggested location for saving new items in, say, October 2012, would be the file:</p>
1400 <pre><code>~/.etm/data/monthly/2012/10.txt</code></pre>
1401 <p>The directories <code>monthly</code> and <code>2012</code> and the file <code>10.txt</code> would, if necessary, be created. The user could either accept this default or choose a different file.</p>
1402 <h3 id="outline_depth"><a href="#outline_depth">outline_depth</a></h3>
1403 <pre><code>outline_depth: 2</code></pre>
1404 <p>The default outline depth to use when opening keyword, note, path or tag view. Once any view is opened, use Ctrl-O to change the depth for that view.</p>
1405 <h3 id="prefix"><a href="#prefix">prefix</a></h3>
1406 <pre><code>prefix: &quot;\n &quot;
1407 prefix_uses: &quot;rj+-tldm&quot;</code></pre>
1408 <p>Apply <code>prefix</code> (whitespace only) to the <span class="citation">@keys</span> in <code>prefix_uses</code> when displaying and saving items. The default would cause the selected elements to begin on a newline and indented by two spaces. E.g.,</p>
1409 <pre><code>+ summary @s 2014-05-09 12am @z US/Eastern
1410 @m memo
1411 @j job 1 &amp;f 20140510T1411;20140509T0000 &amp;q 1
1412 @j job 2 &amp;f 20140510T1412;20140509T0000 &amp;q 2
1413 @j job 3 &amp;q 3
1414 @d description</code></pre>
1415 <h3 id="report"><a href="#report">report</a></h3>
1416 <pre><code>report_begin: &#39;1&#39;
1417 report_end: &#39;+1/1&#39;
1418 report_colors: 2
1419 report_width1: 61
1420 report_width2: 19</code></pre>
1421 <p>Report begin and end are fuzzy parsed dates specifying the default period for reports that group by dates. Each line in the file specified by <code>report_specifications</code> provides a possible specification for a report. E.g.</p>
1422 <pre><code>a MMM yyyy; k[0]; k[1:] -b -1/1 -e 1
1423 a k, MMM yyyy -b -1/1 -e 1
1424 c ddd MMM d yyyy
1425 c f</code></pre>
1426 <p>In custom view these appear in the report specifications pop-up list. A specification from the list can be selected and, perhaps, modified or an entirely new specification can be entered. See <a href="#custom-view">Custom view</a> for details. See also the <a href="#agenda">agenda</a> settings above.</p>
1427 <h3 id="retain_ids"><a href="#retain_ids">retain_ids</a></h3>
1428 <pre><code>retain_ids: false</code></pre>
1429 <p>If true, the unique ids that etm associates with items will be written to the data files and retained between sessions. If false, new ids will be generated for each session.</p>
1430 <p>Retaining ids enables etm to avoid duplicates when importing and exporting iCalendar files.</p>
1431 <h3 id="show_finished"><a href="#show_finished">show_finished</a></h3>
1432 <pre><code>show_finished: 1</code></pre>
1433 <p>Show this many of the most recent completions of repeated tasks or, if 0, show all completions.</p>
1434 <h3 id="smtp"><a href="#smtp">smtp</a></h3>
1435 <pre><code>smtp_from: [email protected]
1436 smtp_id: dnlgrhm
1437 smtp_pw: **********
1438 smtp_server: smtp.gmail.com</code></pre>
1439 <p>Required settings for the smtp server to be used for email alerts.</p>
1440 <h3 id="sms"><a href="#sms">sms</a></h3>
1441 <pre><code>sms_message: &#39;!summary!&#39;
1442 sms_subject: &#39;!time_span!&#39;
1443 sms_from: [email protected]
1444 sms_pw: **********
1445 sms_phone: [email protected]
1446 sms_server: smtp.gmail.com:587</code></pre>
1447 <p>Required settings for text messaging in alerts. Enter the 10-digit area code and number and mms extension for the mobile phone to receive the text message when no numbers are specified in the alert. The illustrated phone number is for Verizon. Here are the mms extensions for the major carriers:</p>
1448 <pre><code>Alltel @message.alltel.com
1449 AT&amp;T @txt.att.net
1450 Nextel @messaging.nextel.com
1451 Sprint @messaging.sprintpcs.com
1452 SunCom @tms.suncom.com
1453 T-mobile @tmomail.net
1454 VoiceStream @voicestream.net
1455 Verizon @vtext.com</code></pre>
1456 <h3 id="snooze"><a href="#snooze">snooze</a></h3>
1457 <pre><code>snooze_command: &#39;&#39;
1458 snooze_minutes: 10</code></pre>
1459 <p>If <code>snooze_command</code> is given, it will be executed when the timer expires; otherwise a beep will be sounded. The default number of minutes for a snooze is given by <code>snooze_minutes</code>. When a snooze timer is active, the time that the timer will expire is displayed in the status bar in the format +H:M:S(am/pm). When a countdown and a snooze timer are both active, the one that will expire first is displayed in the status bar.</p>
1460 <h3 id="style"><a href="#style">style</a></h3>
1461 <pre><code>style: default</code></pre>
1462 <p>The style to be used for Tk/Tcl widgets. Options for linux include clam, alt, default and classic. Options for OSX add aqua. Note that aqua does not support background colors for buttons and may not be suitable with darker background colors.</p>
1463 <h3 id="sundayfirst"><a href="#sundayfirst">sundayfirst</a></h3>
1464 <pre><code>sundayfirst: false</code></pre>
1465 <p>The setting affects only the twelve month calendar display.</p>
1466 <h3 id="update_minutes"><a href="#update_minutes">update_minutes</a></h3>
1467 <pre><code>update_minutes: 15</code></pre>
1468 <p>Update <code>current_html</code>, <code>current_text</code> and the files in <code>icssync_folder</code> when the number of minutes past the hour modulo <code>update_minutes</code> is equal to zero. I.e. with the default, the update would occur on the hour and at 15, 30 and 45 minutes past the hour. Acceptable settings are integers between 1 and 59. Note that with a setting greater than or equal to 30, the update will occur only twice each hour.</p>
1469 <h3 id="vcs_settings"><a href="#vcs_settings">vcs_settings</a></h3>
1470 <pre><code>vcs_settings:
1471 command: &#39;&#39;
1472 commit: &#39;&#39;
1473 dir: &#39;&#39;
1474 file: &#39;&#39;
1475 history: &#39;&#39;
1476 init: &#39;&#39;
1477 limit: &#39;&#39;</code></pre>
1478 <p>These settings are ignored unless the setting for <code>vcs_system</code> below is either <code>git</code> or <code>mercurial</code>.</p>
1479 <p>Default values will be provided for these settings based on the choice of <code>vcs_system</code> below. Any of the settings that you define here will overrule the defaults.</p>
1480 <p>Here, for example, are the default values of these settings for git under OS X:</p>
1481 <pre><code>vcs_settings:
1482 command: &#39;/usr/bin/git --git-dir {repo} --work-dir {work}&#39;
1483 commit: &#39;/usr/bin/git --git-dir {repo} --work-dir {work} add */\*.txt
1484 &amp;&amp; /usr/bin/git --git-dir {repo} --work-dir {work} commit -a -m &quot;{mesg}&quot;&#39;
1485 dir: &#39;.git&#39;
1486 file: &#39;&#39;
1487 history: &#39;/usr/bin/git -git-dir {repo} --work-dir {work} log
1488 --pretty=format:&quot;- %ar: %an%n%w(70,0,4)%s&quot; -U1 {numchanges}
1489 {file}&#39;
1490 init: &#39;/usr/bin/git init {work}; /usr/bin/git -git-dir {repo}
1491 --work-dir {work} add */\*.txt; /usr/bin/git-git-dir {repo}
1492 --work-dir {work} commit -a -m &quot;{mesg}&quot;&#39;
1493 limit: &#39;-n&#39;</code></pre>
1494 <p>In these settings, <code>{mesg}</code> will be replaced with an internally generated commit message, <code>{numchanges}</code> with an expression that depends upon <code>limit</code> that determines how many changes to show and, when a file is selected, <code>{file}</code> with the corresponding path. If <code>~/.etm/data</code> is your etm datadir, the <code>{repo}</code> would be replaced with <code>~/.etm/data/.git</code> and {work} with <code>~/.etm/data</code>.</p>
1495 <p>Leave these settings empty to use the defaults.</p>
1496 <h3 id="vcs_system"><a href="#vcs_system">vcs_system</a></h3>
1497 <pre><code>vcs_system: &#39;&#39;</code></pre>
1498 <p>This setting must be either <code>''</code> or <code>git</code> or <code>mercurial</code>.</p>
1499 <p>If you specify either git or mercurial here (and have it installed on your system), then etm will automatically commit any changes you make to any of your data files. The history of these changes is available in the GUI with the show changes command (<em>Ctrl-H</em>) and you can, of course, use any git or mercurial commands in your terminal to, for example, restore a previous version of a file.</p>
1500 <h3 id="weeks_after"><a href="#weeks_after">weeks_after</a></h3>
1501 <pre><code>weeks_after: 52</code></pre>
1502 <p>In the day view, all non-repeating, dated items are shown. Additionally all repetitions of repeating items with a finite number of repetitions are shown. This includes 'list-only' repeating items and items with <code>&amp;u</code> (until) or <code>&amp;t</code> (total number of repetitions) entries. For repeating items with an infinite number of repetitions, those repetitions that occur within the first <code>weeks_after</code> weeks after the current week are displayed along with the first repetition after this interval. This assures that for infrequently repeating items such as voting for president, at least one repetition will be displayed.</p>
1503 <h3 id="yearfirst"><a href="#yearfirst">yearfirst</a></h3>
1504 <pre><code>yearfirst: true</code></pre>
1505 <p>If yearfirst is true, the YY-MM-DD format will have precedence over MM-DD-YY in an ambiguous date. See also <code>dayfirst</code>.</p>
1506 <h1 id="custom-view"><a href="#custom-view">Custom view</a></h1>
1507 <p>You can create a custom display of your items using either the <em>custom view</em> in the GUI or the &quot;c&quot; command in the CLI. In both cases, you enter a specification that determines which items will be displayed and how they will be grouped and sorted.</p>
1508 <p>A view <em>specification</em> begins with a <em>type character</em>, either <code>a</code> or <code>c</code>, followed by a <em>groupby setting</em> and then, perhaps, by one or more view <em>options</em>.</p>
1509 <h2 id="view-type"><a href="#view-type">View type</a></h2>
1510 <ul>
1511 <li><p><strong>a</strong>: action</p>
1512 <p>Actions only. Expenditures of time and money recorded in <em>actions</em> with output formatted using <code>action_template</code> computations and expansions. See <a href="#preferences">Preferences</a> for further details about the role of <code>action_template</code> in formatting actions output. Note that only <em>actions</em> are included in this view and, by default, all actions in your active calendars will be included.</p></li>
1513 <li><p><strong>c</strong>: composite</p>
1514 <p>Any item types, including actions, but without <code>action_template</code> computations and expansions. Note that only unfinished tasks and unfinished instances of repeating tasks will be displayed. By default, all items from your active calendars will be included.</p></li>
1515 </ul>
1516 <h2 id="groupby-setting"><a href="#groupby-setting">Groupby setting</a></h2>
1517 <p>A semicolon separated list that determines how items will be grouped and sorted. Possible elements include elements from</p>
1518 <ul>
1519 <li><p>c: context</p></li>
1520 <li><p>f: file path</p></li>
1521 <li><p>k: keyword</p></li>
1522 <li><p>l: location</p></li>
1523 <li><p>t: tag</p></li>
1524 <li><p>u: user</p></li>
1525 </ul>
1526 <p>and/or a <em>date specifications</em> where a <em>date specification</em> is either</p>
1527 <ul>
1528 <li>w: week number</li>
1529 </ul>
1530 <p>or a combination of one or more of the following:</p>
1531 <ul>
1532 <li><p>yy: 2-digit year</p></li>
1533 <li><p>yyyy: 4-digit year</p></li>
1534 <li><p>MM: month: 01 - 12</p></li>
1535 <li><p>MMM: locale specific abbreviated month name: Jan - Dec</p></li>
1536 <li><p>MMMM: locale specific month name: January - December</p></li>
1537 <li><p>dd: month day: 01 - 31</p></li>
1538 <li><p>ddd: locale specific abbreviated week day: Mon - Sun</p></li>
1539 <li><p>dddd: locale specific week day: Monday - Sunday</p></li>
1540 </ul>
1541 <p>Note that the groupby specification affects which items will be displayed. Items that are missing an element specified in <code>groupby</code> will be omitted from the output. E.g., undated tasks and notes will be omitted when a date specification is included, items without keywords will be omitted when <code>k</code> is included and so forth. The latter behavior depends upon the value of the <a href="#m-missing">-m MISSING</a> option.</p>
1542 <p>When a date specification is not included in the groupby setting, undated notes and tasks will be potentially included, but only those instances of dated items that correspond to the <em>relevant datetime</em> of the item of the item will be included, where the <em>relevant datetime</em> is the past due date for any past due tasks, the starting datetime for any non-repeating item and the datetime of the next instance for any repeating item.</p>
1543 <p>Within groups, items are automatically sorted by date, type and time.</p>
1544 <h2 id="groupby-examples"><a href="#groupby-examples">Groupby examples</a></h2>
1545 <p>For example, the specification <code>c ddd, MMM dd yyyy</code> would group by year, month and day together to give output such as</p>
1546 <pre><code>Fri, Apr 1 2011
1547 items for April 1
1548 Sat, Apr 2 2011
1549 items for April 2
1550 ...</code></pre>
1551 <p>On the other hand, the specification <code>a w; u; k[0]; k[1:]</code> would group by week number, user and keywords to give output such as</p>
1552 <pre><code>13.1) 2014 Week 14: Mar 31 - Apr 6
1553 6.3) agent 1
1554 1.3) client 1
1555 1.3) project 2
1556 1.3) Activity (12)
1557 5) client 2
1558 4.5) project 1
1559 4.5) Activity (21)
1560 0.5) project 2
1561 0.5) Activity (22)
1562 6.8) agent 2
1563 2.2) client 1
1564 2.2) project 2
1565 2.2) Activity (13)
1566 4.6) client 2
1567 3.9) project 1
1568 3.9) Activity (23)
1569 0.7) project 2
1570 0.7) Activity (23)</code></pre>
1571 <p>With the heirarchial elements, file path and keyword, it is possible to use parts of the element as well as the whole. Consider, for example, the file path <code>A/B/C</code> with the components <code>[A, B, C]</code>. Then for this file path:</p>
1572 <pre><code>f[0] = A
1573 f[:2] = A/B
1574 f[2:] = C
1575 f = A/B/C</code></pre>
1576 <p>Suppose that keywords have the format <code>client:project</code>. Then grouping by year and month, then client and finally project to give output such as</p>
1577 <pre><code>specification: a MMM yyyy; u; k[0]; k[1] -b 1 -e +1/1
1578
1579 13.1) Feb 2014
1580 6.3) agent 1
1581 1.3) client 1
1582 1.3) project 2
1583 1.3) Activity 12
1584 5) client 2
1585 4.5) project 1
1586 4.5) Activity 21
1587 0.5) project 2
1588 0.5) Activity 22
1589 6.8) agent 2
1590 2.2) client 1
1591 2.2) project 2
1592 2.2) Activity 13
1593 4.6) client 2
1594 3.9) project 1
1595 3.9) Activity 23
1596 0.7) project 2
1597 0.7) Activity 23</code></pre>
1598 <h2 id="view-options"><a href="#view-options">View Options</a></h2>
1599 <p>View options are listed below. View type <code>c</code> supports all options except <code>-d</code>. Type <code>a</code> supports all options except <code>-o</code>. These options can be used to further limit which items are displayed.</p>
1600 <h3 id="b-begin_date"><a href="#b-begin_date">-b BEGIN_DATE</a></h3>
1601 <p>Fuzzy parsed date. When a date specification is provided, limit the display of dated items to those with datetimes falling <em>on or after</em> this datetime. Relative day and month expressions can also be used so that, for example, <code>-b -14</code> would begin 14 days before the current date and <code>-b -1/1</code> would begin on the first day of the previous month. It is also possible to add (or subtract) a time period from the fuzzy date, e.g., <code>-b mon + 7d</code> would begin with the second Monday falling on or after today. Default: None.</p>
1602 <h3 id="c-context-1"><a href="#c-context-1">-c CONTEXT</a></h3>
1603 <p>Regular expression. Limit the display to items with contexts matching CONTEXT (ignoring case). Prepend an exclamation mark, i.e., use !CONTEXT rather than CONTEXT, to limit the display to items which do NOT have contexts matching CONTEXT.</p>
1604 <h3 id="d-depth"><a href="#d-depth">-d DEPTH</a></h3>
1605 <p>CLI only. In the GUI use <em>View/Set outline depth</em>. The default, <code>-d 0</code>, includes all outline levels. Use <code>-d 1</code> to include only level 1, <code>-d 2</code> to include levels 1 and 2 and so forth. This setting applies to the CLI only. In the GUI use the command <em>set outline depth</em>.</p>
1606 <p>For example, modifying the specification above by adding <code>-d 3</code> would give the following:</p>
1607 <pre><code>specification: a MMM yyyy; u; k[0]; k[1] -b 1 -e +1/1 -d 3
1608
1609 13.1) Feb 2014
1610 6.3) agent 1
1611 1.3) client 1
1612 5) client 2
1613 6.8) agent 2
1614 2.2) client 1
1615 4.6) client 2</code></pre>
1616 <h3 id="e-end_date"><a href="#e-end_date">-e END_DATE</a></h3>
1617 <p>Fuzzy parsed date. When a date specification is provided, limit the display of dated items to those with datetimes falling <em>before</em> this datetime. As with BEGIN_DATE relative month expressions can be used so that, for example, <code>-b -1/1 -e 1</code> would include all items from the previous month. As with <code>-b</code>, period strings can be appended, e.g., <code>-b mon -e mon + 7d</code> would include items from the week that begins with the first Monday falling on or after today. Default: None.</p>
1618 <h3 id="f-file"><a href="#f-file">-f FILE</a></h3>
1619 <p>Regular expression. Limit the display to items from files whose paths match FILE (ignoring case). Prepend an exclamation mark, i.e., use !FILE rather than FILE, to limit the display to items from files whose path does NOT match FILE.</p>
1620 <h3 id="k-keyword-2"><a href="#k-keyword-2">-k KEYWORD</a></h3>
1621 <p>Regular expression. Limit the display to items with contexts matching KEYWORD (ignoring case). Prepend an exclamation mark, i.e., use !KEYWORD rather than KEYWORD, to limit the display to items which do NOT have keywords matching KEYWORD.</p>
1622 <h3 id="l-location-1"><a href="#l-location-1">-l LOCATION</a></h3>
1623 <p>Regular expression. Limit the display to items with a location matching LOCATION (ignoring case). Prepend an exclamation mark, i.e., use !LOCATION rather than LOCATION, to limit the display to items which do NOT have a location that matches LOCATION.</p>
1624 <h3 id="m-missing"><a href="#m-missing">-m MISSING</a></h3>
1625 <p>Either 0 (the default) or 1. When 1 include items that would otherwise be excluded because of a <em>non-date</em>, groupby specification. E.g., <code>c k</code> would omit items without a keyword entry, but <code>c k -m 1</code> would include such items under a &quot;None&quot; heading. This option does not apply to date specifications, i.e., if a date specification is part of the groupby setting, then undated items will be excluded whatever the value of <code>-m</code>.</p>
1626 <h3 id="o-omit"><a href="#o-omit">-o OMIT</a></h3>
1627 <p>String. Composite type only. Show/hide a)ctions, d)elegated tasks, e)vents, g)roup tasks, n)otes, o)ccasions, s)omeday items and/or t)asks. For example, <code>-o on</code> would show everything except occasions and notes and <code>-o !on</code> would show only occasions and notes.</p>
1628 <h3 id="s-summary"><a href="#s-summary">-s SUMMARY</a></h3>
1629 <p>Regular expression. Limit the display to items containing SUMMARY (ignoring case) in the item summary. Prepend an exclamation mark, i.e., use !SUMMARY rather than SUMMARY, to limit the display to items which do NOT contain SUMMARY in the summary.</p>
1630 <h3 id="s-search"><a href="#s-search">-S SEARCH</a></h3>
1631 <p>Regular expression. Composite type only. Limit the display to items containing SEARCH (ignoring case) anywhere in the <em>item</em> or its file path. Prepend an exclamation mark, i.e., use !SEARCH rather than SEARCH, to limit the display to items which do NOT contain SEARCH in the item or its file path.</p>
1632 <h3 id="t-tags-1"><a href="#t-tags-1">-t TAGS</a></h3>
1633 <p>Comma separated list of case insensitive regular expressions. E.g., use</p>
1634 <pre><code>-t tag1, !tag2</code></pre>
1635 <p>or</p>
1636 <pre><code>-t tag1, -t !tag2</code></pre>
1637 <p>to display items with one or more tags that match 'tag1' but none that match 'tag2'.</p>
1638 <h3 id="u-user-1"><a href="#u-user-1">-u USER</a></h3>
1639 <p>Regular expression. Limit the display to items with user matching USER (ignoring case). Prepend an exclamation mark, i.e., use !USER rather than USER, to limit the display to items which do NOT have a user that matches USER.</p>
1640 <h3 id="w-width"><a href="#w-width">-w WIDTH</a></h3>
1641 <p>Non-negative integer. Truncate the output for column 1 if it exceeds this integer. Do not truncate if this integer is zero.</p>
1642 <h3 id="w-width-1"><a href="#w-width-1">-W WIDTH</a></h3>
1643 <p>Non-negative integer. Truncate the output for column 2 if it exceeds this integer.</p>
1644 <h2 id="saving-view-specifications"><a href="#saving-view-specifications">Saving view specifications</a></h2>
1645 <p>You can save view specifications in your specifications file, <code>~./etm/reports.cfg</code> by default, and then select them in the selection box at the bottom of the custom view window in the GUI or from a list in the CLI.</p>
1646 <p>You can also add specifications to file in the GUI by selecting any item from the list and then replacing the content with anything you like. Press <em>Return</em> to <em>add</em> your specification temporarily to the list. <em>Note that the original entry will not be affected.</em> When you leave the custom view you will have an opportunity to save the additions you have made. If you choose a file, your additions will be inserted into the list and it will be opened for editing.</p>
1647 <h1 id="shortcuts"><a href="#shortcuts">Shortcuts</a></h1>
1648 <h2 id="menu"><a href="#menu">Menu</a></h2>
1649 <pre><code>File
1650 New
1651 Item N
1652 File Shift-N
1653 Timer
1654 Start action timer T
1655 Finish action timer Shift-T
1656 Toggle current timer I
1657 Delete action timer Shift-I
1658 Assign idle time Ctrl-I
1659 Reset idle to zero minutes
1660 Toggle idle timer display
1661 Countdown timer Z
1662 Open
1663 Data file ... Shift-F
1664 Configuration file ... Shift-C
1665 Preferences Shift-P
1666 Scratchpad Shift-S
1667 ----
1668 Quit Ctrl-Q
1669 View
1670 Agenda Ctrl-A
1671 Week Ctrl-W
1672 Month Ctrl-M
1673 Tag Ctrl-T
1674 Keyword Ctrl-K
1675 Path Ctrl-P
1676 Note Ctrl-N
1677 Custom Ctrl-C
1678 ----
1679 Set outline filter Ctrl-F
1680 Clear outline filter Shift-Ctrl-F
1681 Toggle labels L
1682 Set outline depth O
1683 Toggle finished X
1684 Item
1685 Copy C
1686 Delete BackSpace
1687 Edit E
1688 Edit file Shift-E
1689 Finish F
1690 Move M
1691 Reschedule R
1692 Schedule new S
1693 Klone as timer K
1694 Show date and time details D
1695 Open link G
1696 Show user details U
1697 Tools
1698 Home Home
1699 Jump to date J
1700 ----
1701 Show remaining alerts for today A
1702 List busy times in week/month B
1703 List free times in week/month F
1704 Date and time calculator Shift-D
1705 Available dates calculator Shift-A
1706 Yearly calendar Shift-Y
1707 ----
1708 Show outline as text Shift-O
1709 Print outline P
1710 Export to iCal Shift-X
1711 Update calendar subscriptions Shift-M
1712 History of changes Shift-H
1713 Custom
1714 Create and display selected report Return
1715 Export report in text format ... Ctrl-T
1716 Export report in csv format ... Ctrl-X
1717 Save changes to report specifications Ctrl-W
1718 Expand report list Down
1719 Help
1720 Search
1721 Shortcuts ?
1722 User manual F1
1723 About F2
1724 Check for update F3 </code></pre>
1725 <h2 id="edit"><a href="#edit">Edit</a></h2>
1726 <pre><code>Show completions Ctrl-Space
1727 Cancel Escape
1728 Save and Close Ctrl-S </code></pre>
1729 </body>
1730 </html>