Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"copy on selection" option even if the desktop doesn't do it #43

Closed
kikecalpe opened this issue Apr 14, 2013 · 23 comments · Fixed by #1903
Closed

"copy on selection" option even if the desktop doesn't do it #43

kikecalpe opened this issue Apr 14, 2013 · 23 comments · Fixed by #1903

Comments

@kikecalpe
Copy link

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.

@kikecalpe
Copy link
Author

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

@Trahloc
Copy link

Trahloc commented Aug 15, 2013

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.

@gsemet gsemet added the Sandbox label Feb 13, 2014
@gsemet
Copy link
Member

gsemet commented Feb 13, 2014

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

@gsemet gsemet added invalid and removed Sandbox labels Feb 13, 2014
@gsemet gsemet added this to the 0.5.0 milestone Feb 13, 2014
@k7k0
Copy link

k7k0 commented May 4, 2014

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

@pypingou
Copy link
Member

pypingou commented May 4, 2014

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" :)

@aleho
Copy link

aleho commented May 4, 2014

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.

@gsemet gsemet modified the milestones: 0.5.1, 0.5.0 Jul 11, 2014
@bsides
Copy link

bsides commented Sep 24, 2014

👍 for this option. Tending to look for another terminal because of it

@gsemet
Copy link
Member

gsemet commented Sep 24, 2014

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.

@bsides
Copy link

bsides commented Sep 24, 2014

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.

@gsemet
Copy link
Member

gsemet commented Sep 24, 2014

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.

@gsemet gsemet changed the title Terminator like "copy on selection" option "copy on selection" option even if the desktop doesn't do it Sep 24, 2014
@gsemet gsemet self-assigned this Sep 24, 2014
@bsides
Copy link

bsides commented Sep 24, 2014

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

@gsemet gsemet closed this as completed Oct 28, 2014
@gsemet gsemet reopened this Oct 28, 2014
@gsemet gsemet modified the milestones: 1.0.0, 0.5.1 Oct 28, 2014
@gsemet
Copy link
Member

gsemet commented Oct 28, 2014

Assign to a far futur version.

@Strate
Copy link

Strate commented Sep 13, 2016

Is it forgotten?

@gsemet
Copy link
Member

gsemet commented Sep 13, 2016

Feel free to propose a Pull Request

@ghost
Copy link

ghost commented Jan 26, 2017

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

@gsemet gsemet removed this from the 3.0.0 milestone Jan 11, 2018
@bassamjarad
Copy link

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

@gsemet
Copy link
Member

gsemet commented Jan 23, 2018

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

@gsemet
Copy link
Member

gsemet commented Jan 23, 2018

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)

@bravmi
Copy link

bravmi commented Feb 14, 2019

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

@pittersnider
Copy link

Up

@lkorba
Copy link

lkorba commented Dec 29, 2020

Same here, really useful for laptop users...

@stormeyes
Copy link

8 years pass and if there any progress ?

@gsemet
Copy link
Member

gsemet commented Mar 28, 2021

Pull request are still welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.