diff --git a/doc/terminator.1 b/doc/terminator.1 index 88fa455e..2b2c0303 100644 --- a/doc/terminator.1 +++ b/doc/terminator.1 @@ -162,6 +162,18 @@ Reset terminal state .TP .B Ctrl+Shift+G Reset terminal state and clear window +.TP +.B Super+g +Group all terminals so that any input sent to one of them, goes to all of them. +.TP +.B Super+Shift+G +Remove grouping from all terminals. +.TP +.B Super+t +Group all terminals in the current tab so input sent to one of them, goes to all terminals in the current tab. +.TP +.B Super+Shift+T +Remove grouping from all terminals in the current tab. .SH "Drag and Drop" The layout can be modified by moving terminals with Drag and Drop. To start dragging a terminal, hold down \fBCtrl\fP, click and hold the \fBright\fP mouse button. diff --git a/doc/terminator_config.5 b/doc/terminator_config.5 index 1347839e..5a5bbbad 100644 --- a/doc/terminator_config.5 +++ b/doc/terminator_config.5 @@ -372,5 +372,21 @@ Default value: \fBR\fR .B reset_clear Reset the terminal state and clear the terminal window. Default value: \fBG\fR +.TP +.B group_all +Group all terminals together so input sent to one goes to all of them. +Default value: \fBg\fR +.TP +.B ungroup_all +Remove grouping from all terminals. +Default value: \fBG\fR +.TP +.B group_tab +Group all terminals in the current tab together so input sent to one goes to all of them. +Default value: \fBt\fR +.TP +.B ungroup_tab +Remove grouping from all terminals in the current tab. +Default value: \fBT\fR .SH "SEE ALSO" .BR gnome\-terminal(1) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index 24f66c5d..81115f48 100755 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -165,6 +165,10 @@ DEFAULTS = { 'reset' : 'R', 'reset_clear' : 'G', 'hide_window' : 'a', + 'group_all' : 'g', + 'ungroup_all' : 'g', + 'group_tab' : 't', + 'ungroup_tab' : 'T', } } diff --git a/terminatorlib/keybindings.py b/terminatorlib/keybindings.py index 2e7df455..15b85545 100644 --- a/terminatorlib/keybindings.py +++ b/terminatorlib/keybindings.py @@ -44,7 +44,8 @@ class TerminatorKeybindings: 'ctrl': gtk.gdk.CONTROL_MASK, 'control': gtk.gdk.CONTROL_MASK, 'shift': gtk.gdk.SHIFT_MASK, - 'alt': gtk.gdk.MOD1_MASK + 'alt': gtk.gdk.MOD1_MASK, + 'super': gtk.gdk.SUPER_MASK, } empty = {} diff --git a/terminatorlib/terminatorterm.py b/terminatorlib/terminatorterm.py index 4758b20d..cbc44d7c 100755 --- a/terminatorlib/terminatorterm.py +++ b/terminatorlib/terminatorterm.py @@ -1030,6 +1030,18 @@ text/plain def key_reset_clear(self): self._vte.reset (True, True) + + def key_group_all(self): + self.group_all(self) + + def key_ungroup_all(self): + self.ungroup_all(self) + + def key_group_tab(self): + self.group_tab(self) + + def key_ungroup_tab(self): + self.ungroup_tab(self) # End key events def zoom_orig (self):