taskopen icon indicating copy to clipboard operation
taskopen copied to clipboard

Multiple default Notes showing up

Open sdondley opened this issue 2 years ago • 2 comments

If you do task 123 annotate Notes a new default note is created.

If you run the same command multiple times, multiple identical Notes show up in a menu when taskopen 123 is run.

I believe in version 1 of taskopen the default note would open in an editor if you ran task 123 annotate Notes for a second time but I could be wrong about this. Is there a way to change this behavior so it works like this?

sdondley avatar Dec 09 '22 15:12 sdondley

Since taskwarrior known nothing about taskopen by default, it cannot know about the special meaning of the "Notes" annotation. However, taskopen in its default configuration calls the addnote script if, e.g., called as taskopen 123 but task 123 has no annotation yet. On a second call, it will then open the notes file

jschlatow avatar Dec 09 '22 16:12 jschlatow

OK, thanks. As I think about this, I think in version 1 I may have hacked things so that when you did taskopen 123 and a default note did not yet exist it would automatically create a default note and immediately dump you into editing it, otherwise it showed you the menu.

Seems like a more intuitive way to use it.

sdondley avatar Dec 09 '22 17:12 sdondley