Closed oolonek closed 1 week ago
@oolonek The order of action definitions in your config file does not have any effect. However, you may add an alias in order to define a precedence.
[CLI]
alias.default = "normal --include markdown,files,notes,url"
default = default
Alternatively, you may also just use the any mode (taskopen any 14
) to let taskopen present all matching actions for interactive selection.
Thanks a bunch @jschlatow.
Pasting working config file on my side for the record.
[General]
taskbin=task
taskargs
no_annotation_hook="addnote $ID"
task_attributes="priority,project,tags,description"
--sort:"urgency-,annot"
--active-tasks:"+PENDING,+WAITING"
EDITOR=subl -w
path_ext=/usr/local/share/taskopen/scripts
[Actions]
markdown.target=annotations
markdown.regex="^.*\\.(md|markdown)$"
markdown.labelregex=".*"
markdown.command="code $FILE"
markdown.filtercommand=""
markdown.inlinecommand=""
notes.target=annotations
notes.labelregex=".*"
notes.regex="^Notes(\\..*)?"
notes.command="""editnote ~/Notes/tasknotes/$UUID$LAST_MATCH "$TASK_DESCRIPTION" $UUID"""
notes.modes="batch,any,normal"
url.target=annotations
url.labelregex=".*"
url.regex="((?:www|http).*)"
url.command="open $LAST_MATCH"
url.modes="batch,any,normal"
files.target=annotations
files.labelregex=".*"
files.regex="^[\\.\\/~]+.*\\.(.*)"
files.command="open $FILE"
files.modes="batch,any,normal"
[CLI]
alias.default = "normal --include markdown,files,notes,url"
default = default
My initial markdown.regex="*.md"
was not OK.
I am willing to set the default editor for a .md file to be VSCode.
However I can't replicate https://github.com/jschlatow/taskopen/issues/149
Here is my taskopen configuration file (I have place the markdown actions first)
Here is the output of taskopen diagnostics
Indeed opening in debug mode indicates precedence of the default
open
commandWhat am I doing wrong here ?