Add keybindings for group_all, ungroup_all, group_tab and ungroup_tab. Closes LP #376351

This commit is contained in:
Chris Jones 2009-05-23 18:05:50 +02:00
parent e77a3e6c07
commit 69265ec036
5 changed files with 46 additions and 1 deletions

View File

@ -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.

View File

@ -372,5 +372,21 @@ Default value: \fB<Ctrl><Shift>R\fR
.B reset_clear
Reset the terminal state and clear the terminal window.
Default value: \fB<Ctrl><Shift>G\fR
.TP
.B group_all
Group all terminals together so input sent to one goes to all of them.
Default value: \fB<Super>g\fR
.TP
.B ungroup_all
Remove grouping from all terminals.
Default value: \fB<Super><Shift>G\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: \fB<Super>t\fR
.TP
.B ungroup_tab
Remove grouping from all terminals in the current tab.
Default value: \fB<Super><Shift>T\fR
.SH "SEE ALSO"
.BR gnome\-terminal(1)

View File

@ -165,6 +165,10 @@ DEFAULTS = {
'reset' : '<Ctrl><Shift>R',
'reset_clear' : '<Ctrl><Shift>G',
'hide_window' : '<Ctrl><Shift><Alt>a',
'group_all' : '<Super>g',
'ungroup_all' : '<Super><Shift>g',
'group_tab' : '<Super>t',
'ungroup_tab' : '<Super><Shift>T',
}
}

View File

@ -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 = {}

View File

@ -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):