From 20b945aa316959fb2da29bd8cf02f8cc186cceb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Sun, 23 Oct 2022 21:30:44 +0200 Subject: [PATCH] Add usual task states to the default settings. --- scripts/generate.py | 7 +++++++ static/style.css | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/generate.py b/scripts/generate.py index f40ca64..5730e9e 100644 --- a/scripts/generate.py +++ b/scripts/generate.py @@ -20,6 +20,13 @@ from org_rw import dump as dump_org from org_rw import load as load_org from org_rw import token_list_to_raw +# Set custom states +for state in ("NEXT", "MEETING", "Q", "PAUSED", "SOMETIME", "TRACK", "WAITING"): + org_rw.DEFAULT_TODO_KEYWORDS.append(state) + +for state in ("DISCARDED", "VALIDATING"): + org_rw.DEFAULT_DONE_KEYWORDS.append(state) + EXTENSIONS = [ ".org", ".org.txt", diff --git a/static/style.css b/static/style.css index 3053cf5..2c6c6c2 100644 --- a/static/style.css +++ b/static/style.css @@ -155,10 +155,10 @@ h1.title .state { border-radius: 5px; } -h1.title .state.state-TODO { +h1.title .state.todo-True { background-color: rgba(255,0,0,0.5); } -h1.title .state.state-DONE { +h1.title .state.todo-False { background-color: rgba(0,255,0,0.25); }