CALCURSE(1) | CALCURSE(1) |
calcurse - text-based organizer
calcurse -Q [options] [--from <date>] [--to <date>|--days <num>] calcurse -G [options] calcurse -i<file> calcurse -x<format> calcurse --gc calcurse --status calcurse --version calcurse --help
Calcurse is a text-based calendar and scheduling application. It helps keeping track of events, appointments and everyday tasks. A configurable notification system reminds user of upcoming deadlines, and the curses based interface can be customized to suit user needs. All of the commands are documented within an online help system.
The following options are supported:
-a, --appointment
-c <file>, --calendar <file>
-d <date|num>, --day <date|num>
In the first case, the appointment list for the specified date will be returned, while in the second case the appointment list for the n upcoming days will be returned.
As an example, typing calcurse -d 3 will display your appointments for today, tomorrow, and the day after tomorrow. The first form is equivalent to -Q --filter-type cal --from <date>, the second form is equivalent to -Q --filter-type cal --days <num>.
Note: as for the -a flag, the calendar from which to read the appointments can be specified using the -c flag.
--daemon
--days <num>
--export-uid
-D <dir>, --directory <dir>
-F, --filter
--from <date>
-g, --gc
-G, --grep
-h, --help
-i <file>, --import <file>
-l <num>, --limit <num>
--dump-imported
-n, --next
Note: the calendar from which to read the appointments can be specified using the -c flag.
-q, --quiet
-Q, --query
-r[num], --range[=num]
--read-only
Warning: Use this this with care! If you run an interactive calcurse instance in read-only mode, all changes from this session will be lost without warning!
-s[date], --startday[=date]
-S<regex>, --search=<regex>
--status
-t[num], --todo[=num]
--to <date>
-v, --version
-x[format], --export[=format]
Note: redirect standard output to export data to a file, by issuing a command such as:
$ calcurse --export > my_data.dat
Note: The -N option has been removed in calcurse 3.0.0. See the FORMAT STRINGS section on how to print note along with appointments and events.
Filters can be used to restrict the set of items which are loaded from the appointments file when using calcurse in non-interactive mode. The following filters are currently supported:
--filter-hash <pattern>
--filter-type <type>
--filter-pattern <pattern>
--filter-start-from <date>
--filter-start-to <date>
--filter-start-after <date>
--filter-start-before <date>
--filter-start-range <range>
--filter-end-from <date>
--filter-end-to <date>
--filter-end-after <date>
--filter-end-before <date>
--filter-end-range <range>
--filter-priority <priority>
--filter-completed
--filter-uncompleted
--format-apt <format>
--format-recur-apt <format>
--format-event <format>
--format-recur-event <format>
--format-todo <format>
Format strings are composed of printf()-style format specifiers — ordinary characters are copied to stdout without modification. Each specifier is introduced by a % and is followed by a character which specifies the field to print. The set of available fields depends on the item type.
s
S
d
e
E
m
n
N
m
n
N
p
m
n
N
calcurse -r7 --format-apt='- %S -> %E\n\t%m\n%N'
calcurse -r7 --format-apt=' - %m (%S to %E)\n' --format-recur-apt=' - %m (%S to %E)\n'
calcurse -t --format-todo '(%p) %m\n'
Extended format specifiers can be used if you want to specify advanced formatting options. Extended specifiers are introduced by %( and are terminated by a closing parenthesis ()). The following list includes all short specifiers and corresponding long options:
The (start) and (end) specifiers support strftime()-style extended formatting options that can be used for fine-grained formatting. Additionally, the special formats epoch (which is equivalent to (start:%s) or (end:%s)) and default (which is mostly equivalent to (start:%H:%M) or (end:%H:%M) but displays ..:.. if the item doesn’t start/end at the current day) are supported.
The (remaining) and (duration) specifiers support a subset of the strftime()-style formatting options, along with two extra qualifiers. The supported options are %d, %H, %M and %S, and by default each of these is zero-padded to two decimal places. To avoid the zero-padding, add - in front of the formatting option (for example, %-d). Additionally, the E option will display the total number of time units until the appointment, rather than showing the remaining number of time units modulo the next larger time unit. For example, an appointment in 50 hours will show as 02:00 with the formatting string %H:%M, but will show 50:00 with the formatting string %EH:%M. Note that if you are combining the - and E options, the - must come first. The default format for the (remaining) specifier is %EH:%M.
There are two additional long format specifiers that do not have any corresponding short options. They can be used to print an item’s hash or its internal representation and were designed to be used for scripting:
You can place scripts in $HOME/.calcurse/hooks/ to trigger actions at certain events. To enable a hook, add a script with one of the following names to this directory. Also make sure the scripts are executable.
pre-load
post-load
pre-save
post-save
Some examples can be found in the contrib/hooks/ directory of the calcurse source tree.
Calcurse interface contains three different panels (calendar, appointment list, and todo list) on which you can perform different actions. All the possible actions, together with their associated keystrokes, are listed on the status bar. This status bar takes place at the bottom of the screen.
At any time, the built-in help system can be invoked by pressing the ? key. Once viewing the help screens, informations on a specific command can be accessed by pressing the keystroke corresponding to that command.
The calcurse options can be changed from the configuration menu (shown when C is hit). Five possible categories are to be chosen from : the color scheme, the layout (the location of the three panels on the screen), notification options, key bindings configuration menu, and more general options (such as automatic save before quitting). All of these options are detailed in the configuration menu.
The following structure is created in your $HOME directory (or in the directory you specified with the -D option), the first time calcurse is run:
$HOME/.calcurse/
|___notes/
|___conf
|___keys
|___apts
|___todo
The notes subdirectory contains descriptions of the notes which are attached to appointments, events or todos. One text file is created per note, whose name is the SHA1 message digest of the note itself.
The conf file contains the user configuration. The keys file contains the user-defined key bindings. The apts file contains all of the user’s appointments and events, and the todo file contains the todo list.
Note: if the logging of calcurse daemon activity was set in the notification configuration menu, the extra file daemon.log will appear in calcurse data directory. This file contains logs about calcurse activity when running in background.
This section describes the environment variables that affect how calcurse operates.
VISUAL
EDITOR
PAGER
Incorrect highlighting of items appear when using calcurse black and white theme together with a $TERM variable set to xterm-color. To fix this bug, and as advised by Thomas E. Dickey (xterm maintainer), xterm-xfree86 should be used instead of xterm-color to set the $TERM variable:
"The xterm-color value for $TERM is a bad choice for
XFree86 xterm because it is commonly used for a
terminfo entry which happens to not support bce.
Use the xterm-xfree86 entry which is distributed
with XFree86 xterm (or the similar one distributed
with ncurses)."
If you find other bugs, please send a report to bugs@calcurse.org or to one of the authors, below.
vi(1), less(1), ncurses(3), mkstemp(3)
The ical specification (rfc2445) can be found at: http://tools.ietf.org/html/rfc2445
The pcal project page: http://pcal.sourceforge.net/
Calcurse home page: http://calcurse.org/
Calcurse complete manual, translated in many languages and maintained in html format, can be found in the doc/ directory of the source package, or at: http://calcurse.org/files/manual.html
Copyright (c) 2004-2017 calcurse Development Team. This software is released under the BSD License.
11/05/2017 |