Word Count for selection


#1

I love having the word count right at the top of the screen, but it would be nice to have word count also for a selection of text, when applicable.

Thanks!


#2

In the interim, you could use a script action along these lines:

http://actions.getdrafts.com/a/1IW

(() => {

	const main = () =>
		alert(
			words(editor.getSelectedText())
			.length
			.toString() + ' words in selection'
		);
	
	// words :: String -> [String]
	const words = s => s.split(/\s+/);

	// MAIN ---
	main();
	
})()

#3

Oh, perfect, thanks so much!

While it would be nice to see it above, this works almost just as well for my purposes.