GothenburgBitFactory / GothenburgBitFactory/taskwarrior

Open editor when no description/annotation is passed on the command line

Open
#4,009 11 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
6.1k
Forks
423
Avg merge
1d 19h
Merged PRs (30d)
11

Description

I would like to use my editor to write descriptions and annotations for tasks. Ideally, in a way that is similar to how `git commit` works, ie if I don't pass a message on the command line, vim is opened and the text written inside the vim buffer is then passed to `git` as the commit title + message when the editor is closed.

In taskwarrior, I would like my default editor to open if I write `task add` or `task add project:work` (ie as long as a description is not provided), and allow me to type in the task description and optionally a longer description/annotation:

Image

I think `task ID annotate` without an annotation string as a command line argument, could work the same way. It is far more convenient to write long text annotations in a good editor than on the command line. Currently, both `add` and `annotate` without a description/annotation errors with the message `Additional text must be provided.`.

I'm aware of `task edit` but that is a bit messy to navigate around and does not have the same ease of use as the `git commit`-like addition to `task add/annotate` that I am suggesting here. Somewhat related suggestion in https://github.com/GothenburgBitFactory/taskwarrior/issues/2090 but there the intent/discussion centered around report output formatting.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.