Skip to content

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

@joelostblom

Description

@joelostblom

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 #2090 but there the intent/discussion centered around report output formatting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions