You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The terminal.py Terminal.maybe_copy_clipboard method only uses self.vte.copy_clipboard.
As a result, while you can select text in a terminator terminal, it is not pasted elsewhere when you middle-click. I can select text in a gnome-terminal, and then middle-click in a terminator terminal and have it pasted. I would expect the same behavior when I select text in a terminator terminal and then middle-click.
It should be setup like Terminal.paste_clipboard and use primary or clipboard.
Changing maybe_copy_clipboard to use the below, makes everything work great:
def maybe_copy_clipboard(self):
if self.config.........:
if primary:
self.vte.copy_primary()
else:
self.vte.copy_clipboard()
The text was updated successfully, but these errors were encountered:
I've tried this but I just get an error when selecting. Can you be a little bit more specific with your example fix?
File "/Users/mattrose/Code/terminator/terminatorlib/terminal.py", line 407, in maybe_copy_clipboard
if primary:
^^^^^^^
NameError: name 'primary' is not defined
The terminal.py Terminal.maybe_copy_clipboard method only uses self.vte.copy_clipboard.
As a result, while you can select text in a terminator terminal, it is not pasted elsewhere when you middle-click. I can select text in a gnome-terminal, and then middle-click in a terminator terminal and have it pasted. I would expect the same behavior when I select text in a terminator terminal and then middle-click.
It should be setup like Terminal.paste_clipboard and use primary or clipboard.
Changing maybe_copy_clipboard to use the below, makes everything work great:
The text was updated successfully, but these errors were encountered: