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
import sublime, sublime_plugin, re | |
class CountWordsInSelectionCommand(sublime_plugin.EventListener): | |
def on_selection_modified(self, view): | |
''' | |
listen to event 'on_selection_modified' and count words in all selected | |
regions when invoked. | |
''' |