Hi there,
I am playing with events, created the following simple plugin:
import sublime, sublime_plugin
class EventDump(sublime_plugin.EventListener):
def onNew(view):
print "new file"
view.insert(edit, 0, "Hello, World!")
def on_activated(view):
print "got focus"
def on_selection_modified(view):
print "on_selection_modified"
Saved it here ~/Library/Application Support/Sublime Text 2/Packages/EventDump/eventDump.py
But I don’t see any relevant output on the console. Looks like events are not triggered.