I have e.g. a script draft with the title "// todoist url task - batch test. need x-callback urls“.
With the help of an iOS shortcut I create a new draft with links to drafts with a specific tag.
It uses the “Search Drafts” Action step with the tag filter and afterwards a repeat with each loop is kicked of. Inside this loop I have a simple “Text” action which fetches the Title from the draft of the current iteration. and emplaces it between a double bracket to create a link.
After running the shortcut the created report looks like this
# Draft Report
## tag x (3):
- [[title of first match]]
- [[title of second match]]
- [[// todoist url task - batch test. need x-callback urls]]
Greg supported me there because the forward slashes must be escaped in a title link and I adapted the shortcut with a text replace action to get a link like this:
the problem is, I even can’t open this link, instead the alert with the message “A draft matching the title “” was not found.”
I’d like to have an option in the shortcut action step which searches the drafts to receive an already escaped title, which would be useful, but also this issue persists if I create the link manually.
A draft matching the title “” was not found. Would you like to create a new draft with that title?
Test 2
If I try this:
- [[todoist url task - batch test. need x-callback urls]]
I get a match, but I also added a draft titled Another todoist url task - batch test. need x-callback urls, and it pops up a search at that point. So it is just doing a partial title match.
Well the rules are set out already, but I don’t think that’s what is going on here exactly. I believe there is a bug here as the escaping example does not seem to work for me.
I took the linking to markers within a draft example of [[Blue \/ Green]] to link to a draft titled Blue / Green.
But when I select the link I don’t get taken to the draft, but instead get that curious empty title message.
yes the bug is existing, too
was already reported during the conversation with greg but he neede more information so I put it to the forum.
Thanks for testing it out!
Thanks, I did not understand clearly in the support request…it is a bug if your title link begins with a \/, which is confusing the parser that separates markers. Will fix in next release.
do you understand my request regarding the shortcuts action step?
if the “found drafts” would also contain a parameter like “escaped title” this would reduce the complexity and prevent mistakes.