Text Replacement on Edit

33 views
Skip to first unread message

Taylor Jensen

unread,
May 21, 2021, 4:34:39 AM5/21/21
to TiddlyWiki
I have a macro that I use to link to tiddlers in a particular tense. So calling <<l SomeNote sing>> will link to it in the singular, all that works fine and great, but because they're softlinks they don't shot up as backlinks. I'm interesting in correcting this.

I was going to set up an external watcher to just come in and to some basic text manipulation to add some invisible hardlinks to the bottom, but I noticed that TiddlyMap calls a second save cycle to add tmap.id after I've created a note. So I'm hypothesizing that it may be possible to run my own arbitrary code against the saved tiddler on save, from inside TiddlyWiki itself.

I tried digging through the TiddlyMap source and couldn't find where they've got their logic for this, so I'm not sure how to go about it. Any thoughts on how I would go about running some javascript on save to change the contents of my tiddlers?

Reply all
Reply to author
Forward
0 new messages