In the Filter tab of $:/AdvancedSearch, use only the inner "filter run":

[all[tiddlers]!is[system]get[text]splitregexp[\s+]count[]]


(Tested and working on tiddlywiki.com.)

Best,
Joshua F
 

On Monday, October 5, 2020 at 5:08:56 PM UTC-7 LG wrote:

> Thank you, Eric and Joshua!
>
> I'm not getting a response back out unfortunately. Instead I get a link to 
> a zero. I copied it into a new Tiddler to see what'd happen and I got zero. 
> I then put it into the Filter tab of  $:/AdvancedSearch and received this 
> message: 
>
> *3 matches*
> {{{
> 0 <#m_704729030117702504_0>
> }}}
> On Monday, October 5, 2020 at 6:58:55 PM UTC-4 [email protected] wrote:
>
>> 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/300ef646-13b5-404e-adeb-d14b8a65604an%40googlegroups.com.

Reply via email to