On Mon, Mar 01, 2010 at 02:21:56PM +0000, Brett Parker wrote:
On 01 Mar 14:14, Chris G wrote:
Copying and pasting those filenames is dead easy, move mouse cursor over the filename, double-click to select the name, hit middle button and it's pasted at the prompt (text cursor), hit space bar (with the other hand), select next file ..... No major mouse movement, no major hand movement as one hand stays on the mouse the other hand hits the space bar.
If, as happens in textareas and GUI apps, the text cursor moves you can't easily use the mouse to select things and put them all in one place without lots of mouse movement.
Right - 2 things here...
- Copy pasting filenames is never a good idea, and if you're really
going to do that at least use ls -1 so that you only get 1 long list of filenames. Otherwise, use find and xargs for multiple files, with the -print0 option to find and the -0 option to xargs.
I wasn't really advocating what I did as a good/proper way of doing something, I was just trying to show how useful it can be to have a text insertion point which isn't moved around by the paste button.
- Copy paste is not just an X11 thing, there's a seperate setup for
using copy paste in screen, which works really really quite nicely. (Also, vim, for copying between files has the y operator, etc).
Yes, many editors and things will have shortcuts for selecting text, doesn't really help with my original rant though does it! :-)