I made an action widget that may help. http://inmysocks.tiddlyspot.com/#MathyThing%20-%20action-increment%20Widget
<$list filter="[generate[
$:/foo/%count%/%date%/RANDOM(8)/{{!!bar}}/<<baz>>/and-then-some \
min:1 \
max:10 \
inc:1 \
date-format:YYYY0MM0DD
]]">
!! do something
</$list>
<$set name="my-unique-id" filter="[generate[
%date%-RANDOM() \
date-format: YYYY0MM0DD
]]"/>
do stuff
</$set>
<$x-maketid $title="[make[operand expression]]" />
Thanks Tobias! That's the ticket! That's exactly what I needed! This will save me tons of time and effort and scrolling!
%count%
max:11, fields:{'caption','%count%
'}, tags {'tag1', 'tag2'}]] }}}%title%
max:11, fields:{'caption','%title%
'}, tags {'tag1', 'tag2'}]] }}}<$button>
<$list filter="[make[<<currentTiddler>> %count% \ max:3]]">
<$x-maketid text="My New Tiddlers" $title=<<currentTiddler>>/>
</$list>
Make New Tiddlers
</$button>
{{{ [make[the pattern%count%
max:11, fields:{'caption','%count%
'}, tags {'tag1', 'tag2'}]] }}}
And then when you click on the link, that new tiddler gets the specified tags, titles and fields:
<$make
$min="5"
$max="10"
title="the pattern %count%"caption="%count%"tags="foo [[bar baz]]"tag1="mumble"tag2="frotz gronk">
Click to create 5 tiddlers
</$make>
<$button>
<$list filter="[make[<<currentTiddler>
> %count% \ max:3]]">
<$action-setfield text="My New Tiddlers" title=<<currentTiddler>>/>
<$action-setfield tags="one [[and two]] three"/>
<$action-navigate/>
</$list>
Make New Tiddlers
</$button>
<$button>
<$list filter="[make[<<currentTiddler>> %count% \ max:2]]">
<$action-setfield text="My New Tiddlers" title=<<currentTiddler>> tags="one [[and two]] three"/>
<$action-listops $list="caption" $filter="[make[MyTab%count%]] [[Description]]"/>
<$action-navigate/>
</$list>
Make New Tiddlers
</$button>
<$list filter="[make[<<currentTiddler>> %count% \ max:3]]">
<$list filter="[make[max:3]]">
<$button><$list filter="[make[MyNewTitle \max:3]]"><$action-setfield text="My New Tiddlers" tags="one [[and two]] three" field-one="myvalue"/>
<$action-navigate/></$list>Make New Tiddlers</$button>
I created a new filter plugin that allows to generate new titles for use with things like the set or list widget:
[[]make[foo]]
[make[foo]]
<$button>
<$list filter="[[]append:3{Days of the Week!!short}]">
<$action-setfield text="My New Tiddlers" tags="one [[and two]]" field-one="myvalue"/>
<$action-navigate/>
</$list>
Make New Tiddlers
</$button>
It would be great if the make[] operator could prepend/append terms to the listed titles.
{{{ a b c +[make[before %title% after]] }}}
Would also be of use if the make[] operator could create unique values for fields -- currently, an operation generates the same values upon successive calls (unless the values are used to create new tiddlers.) What I have in mind is to create several new tiddlers, with differing values in the same field.