Merge pull request #491 from mattrose/rm_split_cmd
remove vsplit_cmd and hsplit_cmd from ipc.py, superseded by newer hsp…
This commit is contained in:
commit
39a0bc3704
|
@ -167,16 +167,6 @@ class DBusService(Borg, dbus.service.Object):
|
||||||
owner = self.get_terminal_container(terminal, child)
|
owner = self.get_terminal_container(terminal, child)
|
||||||
if owner: return owner
|
if owner: return owner
|
||||||
|
|
||||||
@dbus.service.method(BUS_NAME)
|
|
||||||
def vsplit_cmd(self, uuid=None, title=None, cmd=None):
|
|
||||||
"""Split a terminal vertically, by UUID and immediately runs the specified command in the new terminal"""
|
|
||||||
return self.new_terminal_cmd(uuid=uuid, title=title, cmd=cmd, split_vert=False)
|
|
||||||
|
|
||||||
@dbus.service.method(BUS_NAME)
|
|
||||||
def hsplit_cmd(self, uuid=None, title=None, cmd=None):
|
|
||||||
"""Split a terminal horizontally, by UUID and immediately runs the specified command in the new terminal"""
|
|
||||||
return self.new_terminal_cmd(uuid=uuid, title=title, cmd=cmd, split_vert=True)
|
|
||||||
|
|
||||||
def new_terminal_cmd(self, uuid=None, title=None, cmd=None, split_vert=False):
|
def new_terminal_cmd(self, uuid=None, title=None, cmd=None, split_vert=False):
|
||||||
"""Split a terminal by UUID and immediately runs the specified command in the new terminal"""
|
"""Split a terminal by UUID and immediately runs the specified command in the new terminal"""
|
||||||
if not uuid:
|
if not uuid:
|
||||||
|
@ -377,16 +367,6 @@ def vsplit(session, uuid, options):
|
||||||
"""Call the dbus method to vertically split a terminal"""
|
"""Call the dbus method to vertically split a terminal"""
|
||||||
print(session.vsplit(uuid,options))
|
print(session.vsplit(uuid,options))
|
||||||
|
|
||||||
@with_proxy
|
|
||||||
def vsplit_cmd(session, uuid, title, cmd, options):
|
|
||||||
"""Call the dbus method to vertically split a terminal and run the specified command in the new terminal"""
|
|
||||||
session.vsplit_cmd(uuid, title, cmd)
|
|
||||||
|
|
||||||
@with_proxy
|
|
||||||
def hsplit_cmd(session, uuid, title, cmd, options):
|
|
||||||
"""Call the dbus method to horizontally split a terminal and run the specified command in the new terminal"""
|
|
||||||
session.hsplit_cmd(uuid, title, cmd)
|
|
||||||
|
|
||||||
@with_proxy
|
@with_proxy
|
||||||
def get_terminals(session, options):
|
def get_terminals(session, options):
|
||||||
"""Call the dbus method to return a list of all terminals"""
|
"""Call the dbus method to return a list of all terminals"""
|
||||||
|
|
Loading…
Reference in New Issue