Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple default Notes showing up #160

Closed
sdondley opened this issue Dec 9, 2022 · 2 comments
Closed

Multiple default Notes showing up #160

sdondley opened this issue Dec 9, 2022 · 2 comments
Labels

Comments

@sdondley
Copy link
Contributor

sdondley commented Dec 9, 2022

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?

@jschlatow
Copy link
Owner

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

@sdondley
Copy link
Contributor Author

sdondley commented Dec 9, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants