Skip to content

Commit

Permalink
Merge pull request #491 from mattrose/rm_split_cmd
Browse files Browse the repository at this point in the history
remove vsplit_cmd and hsplit_cmd from ipc.py, superseded by newer hsp…
  • Loading branch information
mattrose authored Aug 22, 2021
2 parents da0ad7a + d169a32 commit 39a0bc3
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions terminatorlib/ipc.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,16 +167,6 @@ def get_terminal_container(self, terminal, container=None):
owner = self.get_terminal_container(terminal, child)
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):
"""Split a terminal by UUID and immediately runs the specified command in the new terminal"""
if not uuid:
Expand Down Expand Up @@ -377,16 +367,6 @@ def vsplit(session, uuid, options):
"""Call the dbus method to vertically split a terminal"""
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
def get_terminals(session, options):
"""Call the dbus method to return a list of all terminals"""
Expand Down

0 comments on commit 39a0bc3

Please sign in to comment.