Key binding option for creating group in current tab

This commit is contained in:
Matt Rose 2020-08-25 15:50:40 -04:00
parent 195833ab5b
commit 2b6fbe5048
3 changed files with 5 additions and 0 deletions

View File

@ -174,6 +174,7 @@ DEFAULTS = {
'reset' : '<Shift><Control>r', 'reset' : '<Shift><Control>r',
'reset_clear' : '<Shift><Control>g', 'reset_clear' : '<Shift><Control>g',
'hide_window' : '<Shift><Control><Alt>a', 'hide_window' : '<Shift><Control><Alt>a',
'create_group' : '',
'group_all' : '<Super>g', 'group_all' : '<Super>g',
'group_all_toggle' : '', 'group_all_toggle' : '',
'ungroup_all' : '<Shift><Super>g', 'ungroup_all' : '<Shift><Super>g',

View File

@ -154,6 +154,7 @@ class PrefsEditor:
'reset' : _('Reset the terminal'), 'reset' : _('Reset the terminal'),
'reset_clear' : _('Reset and clear the terminal'), 'reset_clear' : _('Reset and clear the terminal'),
'hide_window' : _('Toggle window visibility'), 'hide_window' : _('Toggle window visibility'),
'create_group' : _('Create new group'),
'group_all' : _('Group all terminals'), 'group_all' : _('Group all terminals'),
'group_all_toggle' : _('Group/Ungroup all terminals'), 'group_all_toggle' : _('Group/Ungroup all terminals'),
'ungroup_all' : _('Ungroup all terminals'), 'ungroup_all' : _('Ungroup all terminals'),

View File

@ -1870,6 +1870,9 @@ class Terminal(Gtk.VBox):
def key_reset_clear(self): def key_reset_clear(self):
self.vte.reset (True, True) self.vte.reset (True, True)
def key_create_group(self):
self.titlebar.create_group()
def key_group_all(self): def key_group_all(self):
self.emit('group-all') self.emit('group-all')