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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bfbe0df9-cf3e-49fe-9023-a3770402914co%40googlegroups.com.

Reply via email to