Compare commits
2 commits
bda8c3b992
...
37aea93341
| Author | SHA1 | Date | |
|---|---|---|---|
| 37aea93341 | |||
| da03afa758 |
1 changed files with 22 additions and 7 deletions
29
README.md
29
README.md
|
|
@ -1,4 +1,4 @@
|
||||||
# Topen - super simple taskwarrior note editing
|
# Topen - simple taskwarrior note editing
|
||||||
|
|
||||||
A script without bells and whistles.
|
A script without bells and whistles.
|
||||||
Focuses on letting you quickly:
|
Focuses on letting you quickly:
|
||||||
|
|
@ -8,12 +8,20 @@ Focuses on letting you quickly:
|
||||||
|
|
||||||
Does both by simply being invoked with `topen <task-id>`.
|
Does both by simply being invoked with `topen <task-id>`.
|
||||||
|
|
||||||
Automatically appends a small 'Note' annotation to your task so you know you have notes.
|
Automatically appends a small 'Note' annotation to your task so you know you already have notes for it.
|
||||||
|
|
||||||
Should just work as-is without additional configuration in most taskwarrior setups.
|
Should just work as-is without additional configuration in most modern taskwarrior setups.[^moderntw]
|
||||||
But can be configured through environment variables or cli options, see below.
|
|
||||||
|
|
||||||
Can be used as-is or directly from taskwarrior by being aliased:
|
[^moderntw]: The script assumes your taskwarrior setup follows the XDG base directory suggestions. That means,
|
||||||
|
taskrc in `$XDG_CONFIG_HOME/task/taskrc`, usually `~/.config/task/taskrc`. Furthermore, at the moment it
|
||||||
|
assumes the taskwarrior _data_ residing in the `$XDG_DATA_HOME/task` directory. This will diverge from
|
||||||
|
many taskwarrior setups still and can be set through the cli option `--task-data`. The idea is for future
|
||||||
|
`topen` versions to recognize the task data directory from the taskrc file itself but this has not been
|
||||||
|
implemented.
|
||||||
|
|
||||||
|
Can be configured through environment variables or cli options, see below.
|
||||||
|
|
||||||
|
Can be used as-is with the `topen` command or directly from taskwarrior by being aliased in your `taskrc`:
|
||||||
|
|
||||||
```conf
|
```conf
|
||||||
alias.note=exec topen
|
alias.note=exec topen
|
||||||
|
|
@ -48,7 +56,7 @@ feel free to do so by invoking it e.g. with `uvx git+https://git.martyoeh.me/Mar
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
```python
|
```python
|
||||||
TASK_RC = os.getenv("TASKRC", "~/.config/task/taskrc")
|
TASK_RC = os.getenv("TASKRC", "~/.config/task/taskrc") # not implemented yet
|
||||||
TASK_DATA_DIR = os.getenv("TASKDATA", "~/.local/share/task")
|
TASK_DATA_DIR = os.getenv("TASKDATA", "~/.local/share/task")
|
||||||
TOPEN_DIR = os.getenv("TOPEN_DIR", "~/.local/share/task/notes")
|
TOPEN_DIR = os.getenv("TOPEN_DIR", "~/.local/share/task/notes")
|
||||||
TOPEN_EXT = os.getenv("TOPEN_EXT", "md")
|
TOPEN_EXT = os.getenv("TOPEN_EXT", "md")
|
||||||
|
|
@ -57,5 +65,12 @@ TOPEN_EDITOR = os.getenv("EDITOR") or os.getenv("VISUAL", "nano")
|
||||||
TOPEN_QUIET = os.getenv("TOPEN_QUIET", False)
|
TOPEN_QUIET = os.getenv("TOPEN_QUIET", False)
|
||||||
```
|
```
|
||||||
|
|
||||||
These are all environment variables taken, needs improved documentation.
|
These are all environment variables offered, needs improved documentation.
|
||||||
<!-- TODO: IMPROVE DOC -->
|
<!-- TODO: IMPROVE DOC -->
|
||||||
|
|
||||||
|
Ultimately the goal would probably be to support reading from a taskwarrior 'taskrc' file,
|
||||||
|
which can then be optionally overwritten with env variables,
|
||||||
|
which can then be optionally overwritten with cli options.
|
||||||
|
|
||||||
|
This is not fully implemented -- we support the above environment variables
|
||||||
|
and cli options, that's it.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue