diff --git a/doc/terminator_config.5 b/doc/terminator_config.5 index e577a3d3..8a9b2b4e 100644 --- a/doc/terminator_config.5 +++ b/doc/terminator_config.5 @@ -228,6 +228,10 @@ Default value: \fBC\fR Paste the current contents of the clipboard. Default value: \fBV\fR .TP +.B paste_selection +Paste the current contents of the primary selection. +Default value: \fBUnbound\fR +.TP .B toggle_scrollbar Show/Hide the scrollbar. Default value: \fBS\fR diff --git a/terminatorlib/config.py b/terminatorlib/config.py index 41ee6d5d..9e5b6e9e 100644 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -142,6 +142,7 @@ DEFAULTS = { 'close_term' : 'w', 'copy' : 'c', 'paste' : 'v', + 'paste_selection' : '', 'toggle_scrollbar' : 's', 'search' : 'f', 'page_up' : '', diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index c24251f9..dff349c0 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -124,6 +124,7 @@ class PrefsEditor: 'close_term' : _('Close terminal'), 'copy' : _('Copy selected text'), 'paste' : _('Paste clipboard'), + 'paste_selection' : _('Paste primary selection'), 'toggle_scrollbar' : _('Show/Hide the scrollbar'), 'search' : _('Search terminal scrollback'), 'page_up' : _('Scroll upwards one page'), diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index b912252d..70ff6984 100644 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -1810,6 +1810,9 @@ class Terminal(Gtk.VBox): def key_paste(self): self.paste_clipboard() + def key_paste_selection(self): + self.paste_clipboard(True) + def key_toggle_scrollbar(self): self.do_scrollbar_toggle()