Andri, I use the native facility in cases like this, which is not to your requirement but very similar.
What I tend to do here is use a field or tag to associate it with the app. have a new button that creates a "app1 solution" tiddler, which will be incremented automatically if you use https://tiddlywiki.com/#ActionCreateTiddlerWidget and the $basettile="app1 solution" I also use text={{solutionTemplate}} to have new solutions use that template, filename=value and tags="value" (replaces whole tag field) You could also use this in the app1 tiddler \define solution-title() <<currentTiddler>> solution and $basettile=<<solution-title>> I hope this is of some value. Regards Tony On Sunday, June 23, 2019 at 5:32:45 PM UTC+10, Andrei Teodorescu wrote: > > Hi Tony, > > I was able somehow to add numbers in front of them followed by tiddler > name link but that would be an unnatural behaviour (part number, part link) > - that is why I thought about a forcing mechanism that every time I press a > button (let's say Solution App1) would create a new tiddler tagged with > App1 and already populated the Tiddler name with an incrementing value as a > prefix (like knowledge base have). In the team would like these to be > referred as solution 027 for App1, for instance. It ads more clarity, from > my perspective > > Andrei > > On Sun, 23 Jun 2019, 9:40 am TonyM, <[email protected] <javascript:>> > wrote: > >> Andrei Teodorescu >> >> Do you just want these number in the listing of tiddlers or you >> actually want to rename them? >> I recommend against renaming tags or tiddlers with number increments as >> this makes the key (the tiddler title) contain more than the the key and >> you will possible find yourself reversing this elsewhere. >> If so there are other solutions with tags and fields. >> >> >> David, >> >> A Quick tip, you can use the range operator to increment 0.0001 by 0.0001 >> then use removeprefix[0.] to get zero filled numbers. >> >> The next release includes maths operators natively. >> >> Regards >> Tony >> >> >> On Sunday, June 23, 2019 at 4:03:54 PM UTC+10, David Allen wrote: >>> >>> I *think* I figured out a way for it to work either way. It requires >>> using something like tobibeer's eval plugin or another plugin that lets you >>> do mathematical operations in a filter. I'm using tobibeer's eval for my >>> example. >>> >>> First make a list of your tags. Within that list widget, do the >>> following: >>> >>> 1) Use a set widget to get a count of the tiddlers with that tag and >>> store it in a variable >>> >>> 2) Use a list widget that uses the range[] list operator to generate a >>> range of numbers, making sure you use the variable from step 1 as the >>> argument for the range[] operator >>> >>> 3) Use a set widget to contain a modified index number. We'll modify >>> this number by adding 1000 to the number generated by the range[] >>> operator. Then we'll remove the 1 prefix from the result. This is what >>> should happen: >>> >>> 1 ---> 1001 ---> 001 >>> 37 ---> 1037 ---> 037 >>> 837 ---> 1837 ---> 837 >>> >>> 4) Next, use either a set or list widget with a filter that gets all of >>> your tiddlers with the specified tag, then use the nth[] operator with the >>> value we got from the range[] operator in step 2 (not the one we got from >>> step 3, idk if it will work). That should get you the corresponding item. >>> >>> I can't guarantee this will work as I don't have a comparable set of >>> tiddlers to work with to test this. >>> >>> On Sunday, June 23, 2019 at 12:26:03 AM UTC-5, Andrei Teodorescu wrote: >>>> >>>> Hi, >>>> >>>> After hitting a button will be great but it has to take into >>>> consideration that incrementin should be based per tag - nextvalue might >>>> be >>>> different per each application tag (e.g. 5 articles with tagA, next one >>>> will be 006 - ..., 2 articles with tagB, next one will be 003). >>>> >>>> Regards, >>>> Andrei >>>> >>>> On Sun, 23 Jun 2019, 8:09 am David Allen, <[email protected]> wrote: >>>> >>>>> Will this list be displayed/generated after hitting a button or when >>>>> the tiddlywiki loads? I ask because I think I know how to do the first >>>>> one >>>>> but not the second one >>>>> >>>>> On Saturday, June 22, 2019 at 3:51:51 PM UTC-5, Andrei Teodorescu >>>>> wrote: >>>>>> >>>>>> Hi, >>>>>> >>>>>> We just started customizing tiddlywiki in a team of 6 and we have the >>>>>> following knowledge management scenario: >>>>>> - we are creating a knowledge base for several applications (each >>>>>> having its own tag) >>>>>> - for each application, there will be one tiddler in the Table of >>>>>> Contents containing all tiddlers with its specific application tag >>>>>> We would like to have a list for each tag, with number prefix of 3 >>>>>> digits for each tiddler. >>>>>> >>>>>> How can we achieve this? >>>>>> >>>>>> E.g. >>>>>> How to cleanup logs --> 001 How to cleanup logs >>>>>> How to build an index --> 002 How to build an index >>>>>> Error 504 received while login --> 003 Error 504 received while login >>>>>> >>>>>> Regards, >>>>>> Andrei >>>>>> >>>>> -- >>>>> 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 post to this group, send email to [email protected]. >>>>> Visit this group at https://groups.google.com/group/tiddlywiki. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/tiddlywiki/a261229f-b292-4a11-999f-cc4e810a0547%40googlegroups.com >>>>> >>>>> <https://groups.google.com/d/msgid/tiddlywiki/a261229f-b292-4a11-999f-cc4e810a0547%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> -- >> 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] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at https://groups.google.com/group/tiddlywiki. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/tiddlywiki/9b8d9b84-91fc-44c8-9f76-0119fbc99e27%40googlegroups.com >> >> <https://groups.google.com/d/msgid/tiddlywiki/9b8d9b84-91fc-44c8-9f76-0119fbc99e27%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/669c872f-2441-4740-85b7-560ceb8c3c2a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

