Anyone know how I trigger this via a Sublime command? I've gotten as far as grabbing the selection, or if there is no selection the word the cursor is currently within.
- Code: Select all
import sublime, sublime_plugin
def run(self, edit):
for region in self.view.sel():
line = self.view.word(region)
# search with self.view.substr(line) here
# search with self.view.substr(region) here