Attempting to promote a shadow tiddlers to a regular one

The following code reads all tiddlers from $:/plugins/tiddlywiki/internals plugin and adds a field modified with action-setfield widget

As soon as a shadow tiddler is modified, it will become a normal tiddler.

\procedure touch()
<$let shadowList={{{ [<name>plugintiddlers[]format:titlelist[]join[ ]] }}}>
	<$list filter="[enlist<shadowList>]" > 
		<$action-setfield modified=<<now "YYYY0MM0DD0hh0mm0ss">>/>
	</$list>
</$let>
\end

<$let name="$:/plugins/tiddlywiki/internals">

<$button actions=<<touch>> > Click Me </$button>

</$let>

More Background info can be found at:

Have fun!
Mario

test-touch.json (456 Bytes)