According to the docs, on_text_command
should allow you to alter or run a different command, but if I return anything, the command just gets eaten. I think this should scroll if it hit 'ctrl+UP`. It prints out “scroll” but does not scroll the window. Why doesn’t this work?
class EventTrap(sublime_plugin.EventListener):
def on_text_command(self, view, command, args):
if command == 'scroll_lines':
print("scroll")
return (command, args)