[quote=“FichteFoll”]Can confirm, save command is not triggered in the event hooks. Weird.
import sublime_plugin
class Bla(sublime_plugin.EventListener):
def on_window_command(self, view, cmd, args):
if cmd == "save":
print("save command triggered as window command")
else:
print("window cmd:", cmd)
def on_text_command(self, view, cmd, args):
if cmd == "save":
print("save command triggered as text command")
else:
print("text cmd:", cmd)
[code]
sublime.log_commands()
command: drag_select {“event”: {“button”: 1, “x”: 807.5, “y”: 550.5}}
text cmd: drag_select
command: save
reloading plugin User.test
command: save
reloading plugin User.test[/code][/quote]
Same issue got. Should be two classes, first for on_window_command and second for on_text_command.