Guake: "copy on selection" option even if the desktop doesn't do it

Created on 14 Apr 2013  Â·  21Comments  Â·  Source: Guake/guake

Terminator like "copy on selection" option http://guake.org/ticket/513
Reported by: abhishekisnot Owned by: somebody
Priority: major Milestone: 1.0.0
Component: guake Version: 1.0
Keywords: Cc: wojtekk@…
Description

Terminator allows "copy on selection" which basically copies the selected text to primary clipboard. It will be nice to have feature in Guake.

High Feature Request

Most helpful comment

:+1: for this option. Tending to look for another terminal because of it

All 21 comments

Changed by pingou

Isn't this the normal "ctrl+shift+c" or just the middle-click button ?

Changed by abhishekisnot

Not Exactly. Please refer article on how Emacs does this http://www.jwz.org/doc/x-cut-and-paste.html. Essentially, this enhancement, if feasible, asks for 2 changes in the Event & Actions table as below:

Row 1 Changes ==>

Event: text highlighted with mouse

Action: Assert PRIMARY selection ownership + Assert CLIPBOARD selection ownership.

Row 6 Change ==>

Event: another app asks for CLIPBOARD

Action: Send currently-highlighted text, if any. If NOT, Send saved copy of last-copied text, if any.

Changed by wojtekk

cc wojtekk@… added

Just wanted to say I think this would be a nifty enhancement. It'd let me transition between different machines that do this by default and guake easier.

can someone elaborate? On my guake, when I select text, it get copied into the clipboard.

Basically we want this option http://askubuntu.com/a/299724
Every terminal emulator have it, except Guake..

Every terminal emulator have it, except Guake..

I can't find this option in gnome-terminal, so either I need my coffee or it's not so "Every terminal" :)

Apart from that, you can paste the current selection from any application on middle click.

If you want to manage selections and clipboard content you could have a look at ClipIt.

:+1: for this option. Tending to look for another terminal because of it

Can you explain precisely what this copy on selection does? On my ubuntu desktop, every text I select is automatically copied to the clipboard. And of course, text in guake, once selected, is copied.

Well it's exactly what it describes, it copies the text on mouse selection. How did you do that on Ubuntu? Maybe I could use that as a workaround. I don't really need every text to be copied across the whole OS, so I'd really love to have it on Guake only.

For me it is not the workaround, it is per default on ubuntu platform. Maybe you want to force to copy on selection, which is something I can imagine.

I'm on Ubuntu 14 and my text isn't being copied as default. Maybe I'm missing something, I'm going to look for it. Thanks for letting me know anyway :)

EDIT: I just learned that Ubuntu has some sort of 2 clipboards. So, after selecting a text and middle clicking it gets pasted. That's the clipboard from X11. That's good and all but maybe Guake could make a change to paste from another key combination? How about that? Source: http://askubuntu.com/questions/4507/how-do-i-disable-middle-mouse-button-click-paste

Assign to a far futur version.

Is it forgotten?

Feel free to propose a Pull Request

I found what may be a workable solution. I experimented with the setting in the "shell" tab.

  • Changed the dropdown choice from <user shell> to /bin/bash
  • Then I selected a range of text, and pasted it into text editor. It pasted the text selected in Guake without requiring right-click "copy"
    changedefaultinterpreter

UPDATE: I tried selecting text to copy. It does not seem to work consistently. Sorry if this approach does not work for you. It worked when I posted, then after a few attempts, it worked again. I did some googling and did notice some posts/pages about selected text not always going to the machine's clipboard.

For now, I guess I'll rely on Ctrl+Shift+C after selecting the text instead of right-click->copy

I've been looking for this and I can't seem to find a solution. I want to select text with the mouse and then paste it in ANOTHER application (Webbrowser / Text Editor). This doesn't work. It only works if I paste in Guake ... so, I believe there should be an option to copy the selection to the main clipboard, not the clipboard used by Guake

Can you try with guake 3 (HEAD or beta?). I cannot reproduce this problem

Here is the tests I made on Guake 3:

  • select in guake, middle click in guake: text is copied, and pasted on the terminal
  • select in guake, middle click in other Gnome window (gedit): text is copied, and pasted in the app
  • select in guake, Ctrl+V in any other window: it does NOT have overwritten the content in the clipboard.
  • Ctrl+Shift+C in guake, middle click in guake or any other app: text is copied on selection, so paste works
  • Ctrl+Shift+C in guake, Ctrl+Shift+V in guake: selected text is pasted
  • Ctrl+Shift+C in guake, Ctrl+V in other app: selected text is pasted

So, do you want an option "on selection, copy the content to the clipboard"? Because for the moment, we can copy paste on selection already (default behavior in ubuntu), but it does not use the system clipboard (it uses the x11 clipboard)

I think it boils down to a very simple thing. Personally I just want to have an option of the behavior of guake's "Ctrl+Shift+C" on select. I'm on a laptop most of the time and mouse middle paste is unusable on touchpad so basically I just use one clipboard across all apps. In Terminator it's called "smart copy" I believe.

Version: 3.0.5-1

Up

Same here, really useful for laptop users...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

XaF picture XaF  Â·  42Comments

UnsolvedCypher picture UnsolvedCypher  Â·  27Comments

kikecalpe picture kikecalpe  Â·  60Comments

andreicristianpetcu picture andreicristianpetcu  Â·  82Comments

ghost picture ghost  Â·  27Comments