How to count all tiddlers I made?

  1. I have TW 5.2.2.
  2. Not all tiddlers may have a creator name. I just don’t know. So I don’t want to count by creator.
  3. Not all tiddlers have tags of any kind. So the count should not be counting a certain tag, all tiddlers I created should be counted.
  4. The size of my TW HTML file is 6.7MB. It is not that big.

I just want to count the tiddlers I made without counting system tiddlers, add ins/plugins, etc.

I did a search and did not find what I needed. ChatGPT also did not help, it gave answers that were too specific like counting by a given tag. I want something simpler.

Thanks!

p.s. I’m also wondering if there is a limit to the number of tiddlers in a single Tiddlywiki HTML file. I’m on a 64-bit Windows system.

This filter will count all tiddlers (not shadows) that are not in the system namespace ($:/...):

[all[tiddlers]!is[system]count[]]

You can use this result in more complex filters, wrap it in a $text widget, set a variable to this value, whatever you can do elsewhere with filters.

This does not attempt to count ones made by you specifically, just ones that look like public tiddlers.

Update: That initial all[tiddlers] is assumed, so this can just be

[!is[system][count[]]

Go to Controlpanel > Info > Basics and scroll down to bottom, and click “Number of tiddlers”

image

1 Like

“…and for the rest of you guys, the secret is to Bang the Rocks Together!” (Douglas Adams)

1 Like

Thanks, I thought it was in there somewhere. :slight_smile:

Also not a bad idea to wrap the code in a reveal widget if the code is to appear in a tiddler so that it is not rendered automatically. I have a few stat tiddlers like that and I can tell the difference performance wise if they appear anywhere “open” on the storyRiver. Make sure you only pay the performance penalty for statistics when you actually want to see them.

that’s a good point. I have <$count filter="[!is[system]]" /> in my site subtitle, and hadn’t given thought to what performance hit that may have (alongside the ‘Open’ ‘Tag Cloud’ and ‘Recent’ in my sidebar.)

I think I’m about to go down the rabbithole of performance testing things!