You can rewire the save tiddler button to check for the presence of words 
in tiddler text and if yes, execute actions. I assume the search operator 
will come handy.  

On Wednesday, 8 December 2021 at 20:03:14 UTC+5:30 Sid T. wrote:

> Hi, I'm trying to understand how to programmatically add a field or tag to 
> a tiddler.
>
> I'm trying to auto add tag or field to my tiddlers. My thought was to use 
> a macro, such that whenever I add it to a tiddler's text, the macro adds a 
> tag or field value to the current tiddler. 
>
> Examples on TW5 show a button that needs to be clicked, but I'm looking to 
> do something like the following:
>
> \define todo()
> <span><strong>To Do</strong></span>
> <$action-setfield field="mytodo" value="todo"/>
>
> \end
> ---
>
> <<todo>> // adds a field "mytodo" with value "todo"
>
> Thanks!
> Sid
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/260b9c62-d90c-4e27-88fc-190fe9910b04n%40googlegroups.com.

Reply via email to