taskopen icon indicating copy to clipboard operation
taskopen copied to clipboard

'Error: symbol expected, but found:' when running taskopen

Open yongli-abc opened this issue 1 year ago • 1 comments

Hi, I've added an action for opening obsidian note URI:

obsidian.labelregex=".*"
obsidian.regex="^obsidian:\/\/open"
obsidian.command="open $FILE"
obsidian.modes="batch,any,normal"

Here's the annotation on a task:

Name          Value
ID            70
Description   test task
                2024-10-28 14:47:01 obsidian://open?vault=default&file=test%20note

When I run taskopen 70, it does open Obsidian with the note successfully, but I get an error from my command:

(base) ➜  ~ taskopen 70
/Users/yongliabc/.taskopenrc(28, 35) Error: symbol expected, but found: ^obsidian://open

it's a bit annoying. Any help on how to fix this?

yongli-abc avatar Oct 28 '24 14:10 yongli-abc

I know this is an old issue, but I think the problem is you don't need to escape the '/' in the regex. If you just remove the '\'s it works on my machine without the error.

LostLaplace avatar Dec 09 '24 15:12 LostLaplace