1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/* layout, in columns */
#define LEFT_MARGIN 2 /* left padding for everything */
#define SECTION_INDENT 2 /* extra indent per section depth */
#define SUBTASK_INDENT 4 /* extra indent for subtasks */
#define WRAP_COLUMN 80 /* wrap item text past this column */
/*
* colour theme (see `todo.c` for each):
* - THEME_DEFAULT
* - THEME_GRUVBOX
* - THEME_NORD
* - THEME_MONO
* - THEME_LIGHT
* - THEME_CUSTOM (the CUSTOM_THEME below)
*/
#define THEME THEME_LIGHT
#define CUSTOM_THEME { /* used when THEME is THEME_CUSTOM */ \
.highlight = "\x1b[48;5;235m", .highlight_reset = "\x1b[49m", \
.section = "\x1b[1m", .section_reset = "\x1b[22m", \
.note = "\x1b[2;3m", .note_reset = "\x1b[22;23m", \
.done = "\x1b[2m", .done_reset = "\x1b[22m", \
.number = "\x1b[2m", .number_reset = "\x1b[22m", \
.muted = "\x1b[2m", .muted_reset = "\x1b[0m", \
.match = "\x1b[7m", .match_reset = "\x1b[27m", \
.important = "\x1b[1m", .important_reset = "\x1b[22m", \
}
/* capitalize the first letter and add a trailing period */
#define PROSE 1
/* checkbox glyphs (display only; the file always stores [ ] [-] [x]) */
#define MARK_TODO "[ ]"
#define MARK_DOING "[-]"
#define MARK_DONE "[x]"
#define MARK_OPT_TODO "( )"
#define MARK_OPT_DOING "(-)"
#define MARK_OPT_DONE "(x)"
/* cursor shape per mode (DECSCUSR) */
#define CURSOR_NORMAL "\x1b[2 q" /* block */
#define CURSOR_INSERT "\x1b[6 q" /* bar */
#define CURSOR_REPLACE "\x1b[4 q" /* underline */
/* header clock, strftime(3) formats */
#define DATE_FORMAT "%a %d %b %Y"
#define TIME_FORMAT "%H:%M"
|