import sublime_plugin from Origami.origami import PaneCommand as OrigamiPaneCommand from Vintageous.ex.ex_command_parser import ex_cmd_data, EX_COMMANDS #TODO: Add support for filename, args, etc. EX_COMMANDS[('split', 'sp')] = ex_cmd_data(command="vio_ex_split", invocations=(), error_on=()) EX_COMMANDS[('vsplit', 'vs')] = ex_cmd_data(command="vio_ex_vsplit", invocations=(), error_on=()) class VioExVsplitCommand(sublime_plugin.WindowCommand): def run(self, line_range=None): VioVsplitCommand.run(self) class VioExSplitCommand(sublime_plugin.WindowCommand): def run(self, line_range=None): VioSplitCommand.run(self) class VioVsplitCommand(sublime_plugin.WindowCommand): def run(self): self.window.run_command("create_pane", {"direction": "right"}) self.window.run_command("clone_file_to_pane", {"direction": "right"})
class _vio_ctrl_w_o(sublime_plugin.WindowCommand): def run(self): self.window.run_command("set_layout", {"cells": [[0, 0, 1, 1]], "cols": [0.0, 1.0], "rows": [0.0, 1.0]}) # Ex commands from Vintageous.ex.ex_command_parser import ex_cmd_data, EX_COMMANDS # TODO: Add support for filename, args, etc. EX_COMMANDS[('split', 'sp')] = ex_cmd_data(command="vio_ex_split", invocations=(), error_on=()) EX_COMMANDS[('vsplit', 'vs')] = ex_cmd_data(command="vio_ex_vsplit", invocations=(), error_on=()) EX_COMMANDS[('new', 'new')] = ex_cmd_data(command="vio_ex_new", invocations=(), error_on=()) EX_COMMANDS[('vnew', 'vne')] = ex_cmd_data(command="vio_ex_vnew", invocations=(), error_on=()) EX_COMMANDS[('only', 'on')] = ex_cmd_data(command="vio_ex_only", invocations=(), error_on=())