Merge pull request #520 from rkitover/primary-selection-keybind
Add paste_selection keybinding.
This commit is contained in:
commit
65c630b43a
|
@ -228,6 +228,10 @@ Default value: \fB<Ctrl><Shift>C\fR
|
||||||
Paste the current contents of the clipboard.
|
Paste the current contents of the clipboard.
|
||||||
Default value: \fB<Ctrl><Shift>V\fR
|
Default value: \fB<Ctrl><Shift>V\fR
|
||||||
.TP
|
.TP
|
||||||
|
.B paste_selection
|
||||||
|
Paste the current contents of the primary selection.
|
||||||
|
Default value: \fBUnbound\fR
|
||||||
|
.TP
|
||||||
.B toggle_scrollbar
|
.B toggle_scrollbar
|
||||||
Show/Hide the scrollbar.
|
Show/Hide the scrollbar.
|
||||||
Default value: \fB<Ctrl><Shift>S\fR
|
Default value: \fB<Ctrl><Shift>S\fR
|
||||||
|
|
|
@ -142,6 +142,7 @@ DEFAULTS = {
|
||||||
'close_term' : '<Shift><Control>w',
|
'close_term' : '<Shift><Control>w',
|
||||||
'copy' : '<Shift><Control>c',
|
'copy' : '<Shift><Control>c',
|
||||||
'paste' : '<Shift><Control>v',
|
'paste' : '<Shift><Control>v',
|
||||||
|
'paste_selection' : '',
|
||||||
'toggle_scrollbar' : '<Shift><Control>s',
|
'toggle_scrollbar' : '<Shift><Control>s',
|
||||||
'search' : '<Shift><Control>f',
|
'search' : '<Shift><Control>f',
|
||||||
'page_up' : '',
|
'page_up' : '',
|
||||||
|
|
|
@ -124,6 +124,7 @@ class PrefsEditor:
|
||||||
'close_term' : _('Close terminal'),
|
'close_term' : _('Close terminal'),
|
||||||
'copy' : _('Copy selected text'),
|
'copy' : _('Copy selected text'),
|
||||||
'paste' : _('Paste clipboard'),
|
'paste' : _('Paste clipboard'),
|
||||||
|
'paste_selection' : _('Paste primary selection'),
|
||||||
'toggle_scrollbar' : _('Show/Hide the scrollbar'),
|
'toggle_scrollbar' : _('Show/Hide the scrollbar'),
|
||||||
'search' : _('Search terminal scrollback'),
|
'search' : _('Search terminal scrollback'),
|
||||||
'page_up' : _('Scroll upwards one page'),
|
'page_up' : _('Scroll upwards one page'),
|
||||||
|
|
|
@ -1810,6 +1810,9 @@ class Terminal(Gtk.VBox):
|
||||||
def key_paste(self):
|
def key_paste(self):
|
||||||
self.paste_clipboard()
|
self.paste_clipboard()
|
||||||
|
|
||||||
|
def key_paste_selection(self):
|
||||||
|
self.paste_clipboard(True)
|
||||||
|
|
||||||
def key_toggle_scrollbar(self):
|
def key_toggle_scrollbar(self):
|
||||||
self.do_scrollbar_toggle()
|
self.do_scrollbar_toggle()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue