Quickly edit notes for your taskwarrior tasks
Find a file
2025-04-01 10:57:06 +02:00
.gitignore chore: Add gitignore 2025-04-01 10:57:06 +02:00
.python-version initial commit 2025-03-31 19:09:47 +02:00
pyproject.toml chore: Add script entry point 2025-04-01 10:30:44 +02:00
README.md doc: Add installation info 2025-04-01 10:30:43 +02:00
topen Add quiet mode 2025-03-31 21:54:10 +02:00
uv.lock initial commit 2025-03-31 19:09:47 +02:00

Topen - super simple taskwarrior note editing

A script without bells and whistles. Focuses on letting you quickly:

  • create notes for taskwarrior tasks
  • edit notes for taskwarrior tasks

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.

Should just work as-is without additional configuration in most taskwarrior setups. But can be configured through environment variables or cli options, see below.

Can be used as-is or directly from taskwarrior by being aliased:

alias.note=exec topen

And you can open any note with your usual taskwarrior workflow, by doing task note <id>.

That's all there is to it.

Installation

You can install the script with your favorite python environment manager:

uv tool install git+https://git.martyoeh.me/Marty/topen.git
pipx install git+https://git.martyoeh.me/Marty/topen.git
pip install git+https://git.martyoeh.me/Marty/topen.git

Or just manually copy the topen file to a directory in your PATH.

If you just want to try the script out, feel free to do so by invoking it e.g. with uvx git+https://git.martyoeh.me/Marty/topen.git.

Configuration

TASK_RC = os.getenv("TASKRC", "~/.config/task/taskrc")
TASK_DATA_DIR = os.getenv("TASKDATA", "~/.local/share/task")
TOPEN_DIR = os.getenv("TOPEN_DIR", "~/.local/share/task/notes")
TOPEN_EXT = os.getenv("TOPEN_EXT", "md")
TOPEN_ANNOT = os.getenv("TOPEN_ANNOT", "Note")
TOPEN_EDITOR = os.getenv("EDITOR") or os.getenv("VISUAL", "nano")
TOPEN_QUIET = os.getenv("TOPEN_QUIET", False)

These are all environment variables taken, needs improved documentation.