Mark,
Nice idea, also perhaps "Qualify" would also work.
Regards
Tones
On Thursday, 7 January 2021 at 05:02:55 UTC+11 Mark S. wrote:
> Since your requirement is that they be unique, why not just use
> addsuffix<program> ?
>
> On Thursday, December 31, 2020 at 9:58:06 AM UTC-8 si wrote:
>
>> Hopefully the title is clear, so there's no need to read the rest of
>> this, but here is my specific use case in case it's helpful.
>>
>> I have added tiddlers that represent keyboard shortcuts for various
>> programs that I use. I aim to use TiddlyRemember to memorise them.
>>
>> So for example I might have a tiddler called "Ctrl + Shift + C" with the
>> following fields:
>>
>> - evernote: Create a new note.
>> - chrome: Open the console.
>>
>> I have generated the flashcards with the following nested list widget:
>>
>> <$list filter="[tag[Keyboard shortcuts]]" variable="shortcut">
>>
>> <$list filter="[<shortcut>fields[]] -[[text]] -[[tags]] -[[tmap.id]]
>> -[[modified]] -[[created]] -[[title]]" variable="program">
>>
>> <$macrocall $name=rememberq id={{{ [<shortcut>get[created]] }}}
>> question={{{ [<shortcut>get<program>addprefix[Keyboard shortcuts:
>> ]addsuffix[ in ]addsuffix<program>] }}}
>> answer=<<shortcut>>/>
>>
>> </$list>
>>
>> </$list>
>>
>> The only relevant part here is the "id" field of the macrocall. This
>> needs to be unique, but currently it will not always be since I am
>> generating multiple cards from the same tiddler. I want to add a suffix
>> that increments for each "pass" of the list widget. Something like:
>>
>> id={{{ [<shortcut>get[created]addsuffix<incremented-variable>] }}}
>>
>> What would be the best way to approach this?
>>
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/da8a1f01-e1a5-4f28-b8f7-a08e6662b871n%40googlegroups.com.