-
-
Save martin12333/38c2a423f480f260a5ca3d9ef75fea31 to your computer and use it in GitHub Desktop.
Word counting hack for TiddlyWiki 5.1.7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tag="mytag";r="";$tw.wiki.each(function(t){if(t.hasTag(tag)){r=r+" "+(t.fields.text||"")}});r.trim().replace(/\s+/gi," ").split(" ").length |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment