From 2b6fbe504802de9f319807f78382536d6ab70cfc Mon Sep 17 00:00:00 2001 From: Matt Rose Date: Tue, 25 Aug 2020 15:50:40 -0400 Subject: [PATCH] Key binding option for creating group in current tab --- terminatorlib/config.py | 1 + terminatorlib/prefseditor.py | 1 + terminatorlib/terminal.py | 3 +++ 3 files changed, 5 insertions(+) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index f5b23254..398f1a1f 100644 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -174,6 +174,7 @@ DEFAULTS = { 'reset' : 'r', 'reset_clear' : 'g', 'hide_window' : 'a', + 'create_group' : '', 'group_all' : 'g', 'group_all_toggle' : '', 'ungroup_all' : 'g', diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index edab9d6b..14f73055 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -154,6 +154,7 @@ class PrefsEditor: 'reset' : _('Reset the terminal'), 'reset_clear' : _('Reset and clear the terminal'), 'hide_window' : _('Toggle window visibility'), + 'create_group' : _('Create new group'), 'group_all' : _('Group all terminals'), 'group_all_toggle' : _('Group/Ungroup all terminals'), 'ungroup_all' : _('Ungroup all terminals'), diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 3c98239d..eafc5587 100644 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -1870,6 +1870,9 @@ class Terminal(Gtk.VBox): def key_reset_clear(self): self.vte.reset (True, True) + def key_create_group(self): + self.titlebar.create_group() + def key_group_all(self): self.emit('group-all')