Copy/paste via keyboard

GNU/screen has a powerful keyboard-controlled mechanism that lets you copy rectangular blocks, append to its paste buffer, direct the output to a file, etc. I like tiny fonts, and I find that using the keyboard is quicker and a lot more accurate. When I use the mouse, I always end up either missing some stuff, or copy-pasting extra stuff to be on the safe side. I _think_ I saw references online to a similar copy/paste feature in xmonad, but nothing conclusive. Is it something that's available out of the box with 0.8 (debian squeeze) or is it something that you need to script/configure? Or is this just a case of wishful thinking on my part? Thanks, CJ

Control c, control v. Vim is +gP for paste and something else for copy.
Unless your trying to also select using the mouse too.
-Sean
sean@seanneilan.com
On Feb 18, 2010, at 7:28 PM, Chris Jones
Any thoughts?
Thanks,
CJ _______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

On Thu, Feb 18, 2010 at 08:38:15PM EST, Sean Neilan wrote:
Control c, control v. Vim is +gP for paste and something else for copy.
I should use Control+C to copy and Control_V to paste.. ?? How do I select what I'm copying?
Unless your trying to also select using the mouse too.
As the "Subject:" of this post specified, I'm talking about "Copy/paste via keyboard". I'm not sure what you mean by "using the mouse too"..??? Thank you for your comments. CJ

In which applications are you actually wanting to copy/paste?
If you mean in the terminal, that depends on which terminal you're
referring to. However, shift-insert seems to normally paste and you can
use applications like xsel to copy output.
Realistically, this kind of stuff is program-specific and nothing to do
with xmonad.
As a guess, GNU screen allows you to copy/paste because it has tighter
control of the terminals involved.
On 19 February 2010 13:36, Chris Jones
On Thu, Feb 18, 2010 at 08:38:15PM EST, Sean Neilan wrote:
Control c, control v. Vim is +gP for paste and something else for copy.
I should use Control+C to copy and Control_V to paste.. ??
How do I select what I'm copying?
Unless your trying to also select using the mouse too.
As the "Subject:" of this post specified, I'm talking about "Copy/paste via keyboard".
I'm not sure what you mean by "using the mouse too"..???
Thank you for your comments.
CJ _______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
-- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com Samuel Goldwyn - "I'm willing to admit that I may not always be right, but I am never wrong." - http://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html

Quoting Ivan Miljenovic
Realistically, this kind of stuff is program-specific and nothing to do with xmonad.
I tend to agree. Firefox has caret browsing [1], OpenOffice (and other word processors) have shift+movements, vim/emacs have selection modes, there's xsel/xclip for copying files or command output in a terminal, etc. Nevertheless, there are kludges for moving the mouse pointer with the keyboard. You may be interested in one of [2] or [3], for example. I know there is a program out there as well for moving the mouse by cutting the screen into 4 (9?) pieces, then cutting one of those pieces into 4, and so on until you've got to a single pixel (or a small enough region that anywhere in there will do). You may find it with Google, or perhaps somebody else on this list uses it and can point you to its name. Cheers, ~d [1] http://brajeshwar.com/2006/turning-on-caret-browsing-in-firefox/ [2] http://www.tuxfiles.org/linuxhelp/movecursor.html [3] http://hg.suckless.org/swarp/

On Thu, Feb 18, 2010 at 10:10:56PM -0500, wagnerdm@seas.upenn.edu wrote:
I know there is a program out there as well for moving the mouse by cutting the screen into 4 (9?) pieces, then cutting one of those pieces into 4, and so on until you've got to a single pixel (or a small enough region that anywhere in there will do). You may find it with Google, or perhaps somebody else on this list uses it and can point you to its name.
That would be keynav. -Brent

On Thu, Feb 18, 2010 at 09:46:05PM EST, Ivan Miljenovic wrote:
In which applications are you actually wanting to copy/paste?
All/Any.
If you mean in the terminal,
Which "terminal"?
that depends on which terminal you're referring to. However, shift-insert seems to normally paste and you can use applications like xsel to copy output.
Still does not tell me how I should _SELECT_ whatever I need to copy & paste.
Realistically, this kind of stuff is program-specific and nothing to do with xmonad.
So what do I do when I want to copy-paste between between application A and application B..? Do I use application A's specs or application B's..? See my point?
As a guess, GNU screen allows you to copy/paste because it has tighter control of the terminals involved.
That I know. Basically, you're confirming that xmonad does not provide a generic keyboard-driven copy-paste mechanism. But since no window manager that I know of provides this feature, maybe the flaw is in X's design and xmonad is not to blame. Hehe.. Not sure if I'm the duchess or the dormouse any more. Thank you for your comments. CJ

On 19 February 2010 14:59, Chris Jones
On Thu, Feb 18, 2010 at 09:46:05PM EST, Ivan Miljenovic wrote:
In which applications are you actually wanting to copy/paste?
All/Any.
Right, there's no real generic way of doing things that I know of.
If you mean in the terminal,
Which "terminal"?
xterm, konsole, urxvt, etc. Whichever one you use.
that depends on which terminal you're referring to. However, shift-insert seems to normally paste and you can use applications like xsel to copy output.
Still does not tell me how I should _SELECT_ whatever I need to copy & paste.
With a mouse or one of the programs mentioned earlier in this thread that allows for keyboard control of the pointer.
Realistically, this kind of stuff is program-specific and nothing to do with xmonad.
So what do I do when I want to copy-paste between between application A and application B..?
Copy using program A and paste into program B.
Basically, you're confirming that xmonad does not provide a generic keyboard-driven copy-paste mechanism.
Exactly.
But since no window manager that I know of provides this feature, maybe the flaw is in X's design and xmonad is not to blame.
I would argue that it isn't part of the WM's job to do it (after all, the M is for Manage). Does any other WM (or even a DE) have this sense of universal copy/paste?
Hehe.. Not sure if I'm the duchess or the dormouse any more.
Not sure if I get your reference...
Thank you for your comments.
Comments are (currently) free; helpful advice is extra :p -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com Marie von Ebner-Eschenbach - "Even a stopped clock is right twice a day." - http://www.brainyquote.com/quotes/authors/m/marie_von_ebnereschenbac.html

On Thu, Feb 18, 2010 at 10:59:05PM -0500, Chris Jones wrote:
On Thu, Feb 18, 2010 at 09:46:05PM EST, Ivan Miljenovic wrote:
In which applications are you actually wanting to copy/paste?
All/Any.
If you mean in the terminal,
Which "terminal"?
that depends on which terminal you're referring to. However, shift-insert seems to normally paste and you can use applications like xsel to copy output.
Still does not tell me how I should _SELECT_ whatever I need to copy & paste.
Realistically, this kind of stuff is program-specific and nothing to do with xmonad.
As others said, it depends on the program. With gtk apps like web browsers, you can use shift-ctrl-arrows to select with keyboard, but actually, selecting on gtk apps is one of the only things i find easier and quicker to do with a mouse. I guess the keyboard selecting feature is already implemented in your text editor. :) You could also use view instead of less as a viewer.
participants (7)
-
Brent Yorgey
-
Chris Jones
-
Ivan Miljenovic
-
julien steinhauser
-
Sean Neilan
-
Thomas Adam
-
wagnerdm@seas.upenn.edu