Action

Word-count of selection

Last update over 6 years ago

Number of words currently selected in editor

Steps

  • script

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

Options

  • After Success Default
    Notification Info
    Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.