Wordcount
Hello,
As a student, I need to stick to tight wordcounts and WorkFlowy is not very helpful in this. I couldn't find a single extension that would count the words properly because it always seems to miss some bullets. Please do include wordcount in one of the future updates, it is a necessity for me.
Thank you!
Matej
-
Yesss, feel so silly copy/pasting to word counters all the time. It would be nice if it either counted down from the highest level parent node you check it from, or counted a selection (perhaps by default in the pop-up that appears when you highlight multiple nodes?).
It would also be nice if you could toggle a little 'always on' display for the word count of a parent node too, so you can see it in realtime. Maybe floating in the corner as there is lots of screenspace real estate to the right of the program? -
All - I would love an integrated word count function and I made the same request five years ago (see this post).
In the meantime, I've been using this piece of JavaScript code in a bookmark to display a node word count in a banner message in the browser (I didn't create the code).
javascript:(function wordCount_1_0(){function countWords(str){return str.split(/\s+/).filter(n=>n.search(/\w/)!==-1).length}function truncate(str,n){return str.length>n?`${str.substring(0,n)}...`:str}const item=WF.focusedItem()||WF.currentItem();const wc=countWords(WF.exportText([item]));WF.showMessage(`${truncate(item.getNameInPlainText(),100)}<br><b>Word count = ${wc}</b>`)})();
Here is the same code formatted nicely.
javascript:(
function wordCount_1_0()
{
function countWords(str)
{
return str.split(/\s+/).filter(n=>n.search(/\w/)!==-1).length
}
function truncate(str,n)
{
return str.length>n?`${str.substring(0,n)}...`:str
}
const item=WF.focusedItem()||WF.currentItem();
const wc=countWords(WF.exportText([item]));
WF.showMessage(`${truncate(item.getNameInPlainText(),100)}<br><b>Word count = ${wc}</b>`)
}
)();Simply create a new bookmark and place the code in the URL field.
-
Also, WFx Power Pack includes a convenient word count command
Please sign in to leave a comment.
Comments
7 comments