Hi everyone,
It’s my first time posting here though I’ve been a Tiddlywiki admirer and user for a number of years now. So let me explain my question. (If you want to know more about why the question arises see the explanation at the bottom of this post.)
To quote myself, “I’m building a Tiddlywiki to help me run a wargames campaign”. In doing so, I’ve added components to the standard tiddlywiki component set. (Though I haven’t actually modifed anything from among the standard set of Tiddler components yet).
Apart from tags, the largest set of bespoke components that I’ve added is the set of user defined fields. The number is probably trivial by expert tweaker standards but I’m now up to at least 14 user defined (UD) fields. Inevitably that’s making it hard to keep sight of the big picture, which is inconvenient and a source of error. So I thought to create a list of all the user defined fields using the fields
operator. Which is where I ran into problems. Here’s the story.
First I tried using the [fields[]]
Operator on its own, which yields 38 results in the Advanced Search tool. That’s clearly well in excess of the number of UD fields, even if I’ve forgotten a couple, and it’s clear from examining the list that most of them are from the standard, tiddlywiki component set.
That’s OK, it’s a journey. So I thought that if I added !is[system] to the filter run, that might do it. Like this: [!is[system]fields[]]
. Well, it certainly improves things as the number of field names in the output is down to 26. So we’re only 12 over. There are no dupicates, by the way, so deduplication is clearly working.
So next I thought to check how many fields there are in the the standard, tiddlywiki component set and whether I could find any way of grouping them into categories that would be amenable to use in a filter.
Examining [[TiddlerFields|https://tiddlywiki.com/#TiddlerFields]] gave me the field names, their categories and the numbers in each category, that I mentioned in the previous section, but though the names and the numbers were helpful I couldn’t find any formal categorisation for any of the three groups nor the set as a whole that might suit my purpose.
The number of standard fields is 10, Other fields used by the core number 21, the TiddlyWebAdaptor has 3. That adds up to 24, which, together with my expecatation of 14 UD fields, gets us to the magic number, 38. It’s interesting that the number 12 (see previous paragraph) is not readily derived from that set.
If you are still with me and I won’t blame you if you aren’t, my next step was to try using the fields
operator again but now adding the suffix exclude
and populating its parameter
with a list of the standard fields.
To save my self a lot of re-typing (well, not really) during the trials, I copied the tables of fields from [[TiddlerFields|https://tiddlywiki.com/#TiddlerFields]] into a text editor and turned them into: (a) a comma separated list without spaces or line breaks; and (b) a single space separated list without commas or line breaks. I then put both lists into a new tiddler called standard-fields
, with one of the lists commented out.
Finally, I used the fields
operator again with the suffix exclude
and with it’s parameter field populated with a transclusion link to the native-fields
tiddler, like this: [!is[system]fields:exclude[{standard-fields}]]
. That still gave me 26 matches. Sigh!
I’m out of ideas now, for the moment, so if anyone can help, I’d be really grateful for your input.
Thanks for staying with me or even for starting.
Regards, Chris
PS So why am I posing this question?
The simple answer is that I’m building a Tiddlywiki to help me run a wargames campaign for my regular gaming group. I’m building it on the hoof, from an earlier version, and I’m frequently finding that I need to remind myself about what I’ve built into or on top of the standard tiddlywiki component set. As you’ve read, that’s where the problem arises.
Of course, I also find that I need then to change something across a batch of tiddlers. Now that, which should probably be the hardest, isn’tfunnily enough. That’s thanks to tools like the “Rename Tag” plug-in from Albertononi and the Tiddler Commander from Mohammed (for both of which I’m very grateful).
Btw, I think this topic is closely related to this one: [tw5] Tag manager like interface for user fields, from a couple of years back but which doesn’t have an answer.
OS: Linux; Distro: Puppy Linux, variant: FossaPup_64_9.6; Browser: Firefox (always current); TW version: 5.3.6.