A working demo you can play with: https://pmario.github.io/kitchensink/5361-unusedtitle-macro.html#unusedtitle%20Macro%20(Examples%201):%5B%5Bunusedtitle%20Macro%5D%5D%20%5B%5Bunusedtitle%20Macro%20(Examples)%5D%5D%20%5B%5Bunusedtitle%20Macro%20(Examples%201)%5D%5D
On Sunday, February 28, 2021 at 3:11:29 PM UTC+1 [email protected] wrote: > This approach comes very close to what I need, but what is problematic is > the space between the name and the numbers. As you know, spaces in titles > require special handling and can limit options. > > I am trying to build a document management system that can index, identify > and describe a series of documents. Every once in a while someone hands me > a pile of paper that I need to organize, which can be overwhelming since I > do not have a paralegal. Some law firms use what is called a "Bates" > numbering system. This is a number system that uses a series of padded > numbers: ei., 0001, 0002, 0003. I would like a number system that does > this, but also allows me to attach a name on the front to identify the > account. > > I am still evaluating how to organize these numbers once I have > them---there are several options. I may try one method out, then switch to > another. I am not smart enough to figure this stuff out ahead of time. I > try stuff, see what works, then try something else. Sometimes when I get > something that works, I can't even explain why it works, I just like the > result. > > I know that some options are not compatible with spaces in titles. For > example there is the "tree Macro," (https://tiddlywiki.com/#tree%20Macro). > I have never seen this macro actually used, and it seem somewhat awkward, > so maybe it is not something that I want to rely upon but on the other > hand, it appears to accomplish useful things and may work well for my > use-case. I want to be able to test it out. But the macro does not appear > to work if there are spaces in the titles. Another option is the tabbed > internal macro ( > https://tiddlywiki.com/#Example%20Table%20of%20Contents%3A%20Tabbed%20Internal). > > This macro does not tolerate spaces in the titles of the root tiddler. I > already use this method extensively, so I would like to have this option > available. > > I hope this adequately explains what I need. > > Merv > On Saturday, February 27, 2021 at 2:02:39 PM UTC-7 PMario wrote: > >> On Friday, February 26, 2021 at 3:10:02 PM UTC+1 [email protected] wrote: >> >>> I need the ability to create sequentially numbered tiddlers. In other >>> words, a button that creates a new tiddler with the following pattern. >>> <<blankname>><<paddednumber1>>. The next number in the series would have >>> <<blankname>><<paddednumber2>> and so on. The title cannot contain any >>> spaces. >> >> >> As I wrote in my first post, there is a pending PR, which tries to >> achieve something slightly related. >> >> I did come up with an implementation that looks like this: >> >> <<unusedtitle baseName:"yourName">> >> >> will output >> >> yourName >> yourName 1 >> yourName 2 >> >> and so on >> >> <<unusedtitle baseName:"yourName" template:"$baseName$ $CNT:4$">> >> >> which will output something like this: >> >> yourName 0000 >> yourName 0001 >> yourName 0002 >> >> and so on. >> >> <<unusedtitle baseName:"yourName" template:"$baseName$$CNT:2$">> >> results in >> yourName00 >> >> As you can see, there is a little bit of a difference. The *first *example >> is there for backwards compatibility. The *second* example is new >> behaviour and will start with the 0000 as the numbering. >> >> What do you think? Would this behaviour be OK for your usecase. >> >> @Jermolene .. What do you think. >> >> A working TEST-wiki to test with will be posted soon! >> >> -mario >> >> -- 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/14917d04-d850-471e-8e0c-c0e0ebe8e9fen%40googlegroups.com.

