Excellent response, and so close to mine I will let it stand. Good use of
{{{ ... }}} "transcluded filter" notation.
You could also type that filter into the "Filter" tab of $:/AdvancedSearch.
Best,
Joshua F
On Sunday, October 4, 2020 at 7:39:51 PM UTC-7 Eric Shulman wrote:
> On Sunday, October 4, 2020 at 5:58:50 PM UTC-7, LG wrote:
>>
>> I copied all of my writing into one TW file. Is there a way to get a
>> total word count? There are 823 tiddlers.
>
>
> {{{ [all[tiddlers]!is[system]get[text]splitregexp[\s+]count[]] }}}
>
> * {{{ [...] }}} encloses an "inline filter" (aka, "filter transclusion")
> * all[tiddlers] includes regular and system tiddlers
> * !is[system] eliminates the system tiddlers (those with the $:/ prefix)
> * get[text] fetches the text content of each tiddler
> * splitregexp[\s+] splits the text at each sequence of one or more
> "whitespace" characters, including space, tab, form feed, line feed, and
> other Unicode spaces.
> * count[] returns the number of resulting items
>
> enjoy,
> -e
>
--
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/b0ab3d59-7658-4813-bc33-0f9978846484n%40googlegroups.com.