From d32aff437ca91784a10effad18bfcca541b5564b Mon Sep 17 00:00:00 2001 From: hachem Date: Sat, 3 Oct 2026 21:40:00 +0200 Subject: fix: prose mode --- config.h | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index 20cc1b7..9bad475 100644 --- a/config.h +++ b/config.h @@ -4,16 +4,16 @@ #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): +/* + * colour theme (see `todo.c` for each): * - THEME_DEFAULT * - THEME_GRUVBOX * - THEME_NORD * - THEME_MONO - * - THEME_CUSTOM (the CUSTOM_THEME below) */ + * - THEME_CUSTOM (the CUSTOM_THEME below) + */ #define THEME THEME_DEFAULT - -/* used when THEME is THEME_CUSTOM */ -#define CUSTOM_THEME { \ +#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", \ @@ -24,8 +24,10 @@ .important = "\x1b[1m", .important_reset = "\x1b[22m", \ } -/* checkbox glyphs (display only; the file always stores [ ] [-] [x]). - * OPT_* are for optional (*) tasks; any width is fine. */ +/* 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]" @@ -42,8 +44,3 @@ #define DATE_FORMAT "%a %d %b %Y" #define TIME_FORMAT "%H:%M" -/* limits (rarely need changing) */ -#define MAX_ITEMS 4096 /* most items in a list */ -#define MAX_TEXT 256 /* longest item text, in bytes */ -#define MAX_COMMAND 64 /* longest : command or / search */ -#define MAX_HISTORY 64 /* undo/redo depth */ -- cgit v1.3