Closed TeaWhyDee closed 2 years ago
@TeaWhyDee Thanks for trying taskopen.
As I can see from your diagnostics output, you have not configured an action that can deal with your annotations. You currently only have a files
action that matches on everything that starts with /
, .
, or ~
. Depending on how your system is configured, you could try passing everything to xdg-open as a starting point by changing the files.regex
to .*
. Alternatively, you could define a separate action for this. Let me share an excerpt of my config (as reported by taskopen diagnostics
:
Actions:
url
.target = annotations
.regex = ((?:www|http).*)
.labelregex = .*
.command = qutebrowser $LAST_MATCH 2>/dev/null
.modes = batch,any,normal
notes
.target = annotations
.regex = ^Notes\.(.*)
.labelregex = .*
.command = editnote ~/Notes/tasknotes/$UUID.$LAST_MATCH "$TASK_DESCRIPTION" $UUID
.modes = batch,any,normal
Here, you also see the special case of the Notes
annotation. If a task is annotated with this, a file named after the task's UUID is opened. At /usr/share/taskopen/script/
, you find the corresponding editnote
script as well as the addnote
script that is executed when no actionable annotation was found. You've already seen the latter in action when it asked you for an optional file extension.
For a more detailed explanation of how taskopen is configured, you may have a look at the taskopenrc manpage.
Thank you, this cleared it up. It's a little confusing that taskopen doesn't have an action for links by default (I assumed it would try to xdg-open), while the description and README state that it can open links. Maybe a clarification in README would be nice.
It's a little confusing that taskopen doesn't have an action for links by default (I assumed it would try to xdg-open), while the description and README state that it can open links.
Good point ;-)
I've just installed it (never used it before) through AUR (2.0.0beta). I cannot open my annotations. I ran this command:
task 52 annotate www.taskwarrior.org
Then I rantaskopen 52
and got the following:It doesn't matter what I type it always acts the same.
Output of
taskopen diagnostics
:Part of output of
task 52
: