Adding " in a config that is wrapped in " "

55 views
Skip to first unread message

David Gifford

unread,
Jul 11, 2021, 7:50:17 AM7/11/21
to TiddlyWiki
Hi everyone


Has this:

"pattern": "///",
      "filter": "[all[tiddlers]!is[system]]",
      "start": "<$macrocall $name=det tid=",
      "end": " />"

I would like to have a " after tid= and another " before /> so that when I hit enter, the tiddler that is autocompleted will be wrapped with the full macrocall. Single quotes aren't an option, because tiddler titles could contain single quotes.

What is the secret hack you guys use to sneak those in? Based on the editor toolbar wrap buttons I tried turning " from the code into """, but I destroyed my file. Don't worry, it was a copy, so I didn't lose anything.

Thanks for any help you can give!

Dave

Saq Imtiaz

unread,
Jul 11, 2021, 8:15:13 AM7/11/21
to TiddlyWiki
Try this:

"pattern": "///",
      "filter": "[all[tiddlers]!is[system]]",
      "start": "<$macrocall $name=det tid=\"",
      "end": "\" />"


David Gifford

unread,
Jul 12, 2021, 10:01:38 AM7/12/21
to tiddl...@googlegroups.com
Thanks Saq! I found your post when I checked my spam filter this morning. Works great! Commencing world domination as we speak.


--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/T3n5S27urEo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0ab2eaad-4a1b-4dc7-ab33-31bb17ff9bden%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages