From c08ad6f17518958e74439a8141a9e3aba9005026 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sun, 25 May 2025 20:10:05 +0200 Subject: [PATCH] update taskwarrior --- data/task/contexts.md | 34 +++++++++++++ data/{taskwarrior => task}/task.md | 70 ++++++++------------------ data/task/taskwarrior_configuration.md | 20 ++++++++ data/{taskwarrior => task}/timew.md | 0 4 files changed, 76 insertions(+), 48 deletions(-) create mode 100644 data/task/contexts.md rename data/{taskwarrior => task}/task.md (60%) create mode 100644 data/task/taskwarrior_configuration.md rename data/{taskwarrior => task}/timew.md (100%) diff --git a/data/task/contexts.md b/data/task/contexts.md new file mode 100644 index 0000000..4ed3638 --- /dev/null +++ b/data/task/contexts.md @@ -0,0 +1,34 @@ +--- +title: "Taskwarrior Contexts" +tags: [ "data", "task" ] +requires: [ "Taskwarrior" ] +--- + +# Contexts + +Set three contexts by their tags: + +```sh +task context define work +sa or +hr +``` + +```sh +task context define study +ed or +void or +rat +``` + +```sh +task context define home -sa -hr -ed -void -rat +``` + +Change to the first context. + +```sh +task context work +``` + +Then stop. + +```sh +task context none +``` + diff --git a/data/taskwarrior/task.md b/data/task/task.md similarity index 60% rename from data/taskwarrior/task.md rename to data/task/task.md index dc3019f..231b859 100644 --- a/data/taskwarrior/task.md +++ b/data/task/task.md @@ -1,6 +1,6 @@ --- -title: "task" -tags: [ "organization" ] +title: "Taskwarrior" +tags: [ "data", "organization" ] --- Set up the configuration file: @@ -9,6 +9,18 @@ Set up the configuration file: task ``` +Taskwarrior published a new feature to synchronize tasks others, but the feature was not ready. +The server's default installation instructions assume that users pay for hosting services. +All listed providers run proprietary software and actively support genocide. + + +To ignore the synchronization, tell the configuration file to use a local synchronization file. + +``` +task config sync.local.server_dir +task config data.location ~/.local/state/ +``` + Add a task: ```sh @@ -44,18 +56,16 @@ task add project:house buy potted plant task add proj:house.repair buy screwdriver task add proj:house.repair buy shelf brackets task add pro:house.paint buy white paint -task add pro:house.paint buy red paint -task add pro:house.paint buy black paint -task add pro:house.paint buy brushes + +for t in "buy red paint" "buy black paint" "buy brushes" ; do + task add pro:house.paint $t +done ``` ## Summary ```sh task pro:house sum -``` - -```sh task burndown.daily pro:house ``` @@ -63,44 +73,12 @@ The summaries will show how fast a project is being completed, and when you can # Tags + ```sh task add +buy toothbrush -``` - -You can then see only tasks which involve buying something with: - -```sh task +buy ``` -# Contexts - -Set three contexts by their tags: - -```sh -task context define work +sa or +hr -``` - -```sh -task context define study +ed or +void or +rat -``` - -```sh -task context define home -sa -hr -ed -void -rat -``` - -Change to the first context. - -```sh -task context work -``` - -Then stop. - -```sh -task context none -``` - # Review View list of tasks completed in the last week: @@ -111,21 +89,17 @@ task end.after:today-1wk completed # User Defined Attributes -Make a UDA 'size'. +Define a new attribute for tasks called 'size'. +The 'user defined attribute' (UDA) needs a `type` and `label`. ```sh task config uda.size.type string -``` - -```sh task config uda.size.label Size ``` +You can also ensure task tasks can only be `large`, `medium`, or `small`, then set a default. ```sh task config uda.size.values large,medium,small -``` - -```sh uda.size.default=medium ``` diff --git a/data/task/taskwarrior_configuration.md b/data/task/taskwarrior_configuration.md new file mode 100644 index 0000000..6930373 --- /dev/null +++ b/data/task/taskwarrior_configuration.md @@ -0,0 +1,20 @@ +--- +title: "Taskwarrior Configuration" +tags: [ "data", "task" ] +requires: [ "Taskwarrior" ] +--- + +Show your current config: + + +```sh +task show +``` + +Use machine-readable output to make a config file with all configuration keys shown, then make it your configuration file. + +```sh +task _show > ${file} +mv ${file} ~/.config/task/taskrc +``` + diff --git a/data/taskwarrior/timew.md b/data/task/timew.md similarity index 100% rename from data/taskwarrior/timew.md rename to data/task/timew.md