diff --git a/doc/manual/_build/html/_sources/preferences.txt b/doc/manual/_build/html/_sources/preferences.txt index 720c3c72..c75e993a 100644 --- a/doc/manual/_build/html/_sources/preferences.txt +++ b/doc/manual/_build/html/_sources/preferences.txt @@ -256,6 +256,11 @@ a separate window launched from the menu bar. This puts the selection into the copy/paste buffer, as well as being available on middle-click. +**Putty paste style** (default: off) + + Make right mouse button in Putty-style: right button - paste from + clipboard, middle - open popup (for ex-Putty users). + **Select-by-word characters** (default: ``-A-Za-z0-9,./?%&#:_``) Using double-click to select text will use this pattern to define diff --git a/doc/manual/source/preferences.rst b/doc/manual/source/preferences.rst index 720c3c72..c75e993a 100644 --- a/doc/manual/source/preferences.rst +++ b/doc/manual/source/preferences.rst @@ -256,6 +256,11 @@ a separate window launched from the menu bar. This puts the selection into the copy/paste buffer, as well as being available on middle-click. +**Putty paste style** (default: off) + + Make right mouse button in Putty-style: right button - paste from + clipboard, middle - open popup (for ex-Putty users). + **Select-by-word characters** (default: ``-A-Za-z0-9,./?%&#:_``) Using double-click to select text will use this pattern to define diff --git a/doc/terminator_config.5 b/doc/terminator_config.5 index 0fa344f9..66a81cd2 100644 --- a/doc/terminator_config.5 +++ b/doc/terminator_config.5 @@ -489,6 +489,10 @@ Default value: \fBUTF-8\fR .B copy_on_selection \fR(boolean) If set to True, text selections will be automatically copied to the clipboard, in addition to being made the Primary selection. Default value: \fBFalse\fR +.TP +.B putty_paste_style \fR(boolean) +If set to True, right mouse click - paste Primary selection, middle mouse click - popup menu. +Default value: \fBFalse\fR .SH layouts diff --git a/terminatorlib/preferences.glade b/terminatorlib/preferences.glade index ed484a1c..7e28f213 100644 --- a/terminatorlib/preferences.glade +++ b/terminatorlib/preferences.glade @@ -1590,6 +1590,22 @@ 5 + + + Putty paste style + True + True + False + False + True + + + + False + False + 6 + + False diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index 21bf79fb..c67033e2 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -425,6 +425,9 @@ class PrefsEditor: # Copy on selection widget = guiget('copy_on_selection') widget.set_active(self.config['copy_on_selection']) + # Putty paste style + widget = guiget('putty_paste_style') + widget.set_active(self.config['putty_paste_style']) # Word chars widget = guiget('word_chars_entry') widget.set_text(self.config['word_chars']) @@ -722,6 +725,11 @@ class PrefsEditor: self.config['copy_on_selection'] = widget.get_active() self.config.save() + def on_putty_paste_style_toggled(self, widget): + """Putty paste style setting changed""" + self.config['putty_paste_style'] = widget.get_active() + self.config.save() + def on_cursor_blink_toggled(self, widget): """Cursor blink setting changed""" self.config['cursor_blink'] = widget.get_active()