Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove vsplit_cmd and hsplit_cmd from ipc.py, superseded by newer hsp… #491

Merged
merged 1 commit into from
Aug 22, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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