On Monday, February 10, 2020 at 1:14:40 PM UTC+1, Mohammad wrote: > > Refereeing to recent discussion on The Good and Bad of qualify: > https://groups.google.com/d/msg/tiddlywiki/51XMzmLGxfQ/PLkfWWthBAAJ > > We know many cases in creating User Interfaces (UI) needs some state > tiddlers. > > I got used to call qualify for such cases, but with the recent discussion > it seems qualify is designed for purposes one like to keep some states > permanently and irrespective of current tiddler situation. > I know it's not a real solution for your request but anyway:
I did create a PR at github <https://github.com/Jermolene/TiddlyWiki5/pull/4454>, that allows the qualify-macro to use a isUnique parameter. So you can use <<qualify "my-unique-title" isUnique:"yes">> .. So the macro doesn't add -123456 string. It returns the input state text. > My question is: > > Is there any other ways to create unique stateTiddler? I dont mean do this > manually? > Sure - but we didn't find it - yet ;) > There are situation, one needs permanent state tiddler to keep data. For > example in Shiraz dynamic table I uses state tiddler to keep footer data or > row styles. > These are not temporary data and it is tedious to define unique state > tiddler for every table! > As I wrote, you need to work with variables like tiddler-names, tab-names, list-items and so on. ... And yes creating "real" uniqueness is hard, if it should be predictable. > The current mechanism I use is qualify macro which is not good for all > scenario. > that's right. > p.s: > One KISS solution is to use a helper function which calls now macro > with [UTC]YYYY0MM0DD0hh0mm0ssXXX format to create a unique title for the > required state tiddler. > ... And you can remember their names, if you have many of them? -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/f8ab7237-ba19-443c-aefa-7aa47ee73176%40googlegroups.com.

