On 2009-09-03, Patrick Gen-Paul <[email protected]> wrote:
> Gary Johnson wrote:
>
> [..]
>
> >That's true, and I use it frequently, but it will only copy and
> >paste among windows running in that terminal. You can't, for
> >example, use it to copy from Firefox and paste into mutt.
>
> But in this instance, you still have to use the mouse to select what you
> paste to the X clipboard?
>
> Which is the part that I really find inconvenient.
>
> Once you've managed to select what you really wanted, copying it to a
> terminal is only a middle-click away.
>
> Since I use ELinks for 99% of my browsing, this is rarely an issue for
> me but I'll keep your tip in mind.
After Derek's comment I re-read your post and see now that I
misunderstood your situation. You're right: once you've got your
hand on the mouse, you might as well use it for both copying and
pasting.
> Is their anyway I could copy something mutt+vim to the clipboard and
> retrieve it in Seamonkey via a Ctrl-V for instance?
For vim, it depends on your terminal and on the way vim was built
and configured, but you can usually access the clipboard from vim
via the + and/or * registers. For example,
"+yiw
will yank the word under the cursor to the clipboard. See
:help x11-selection
for more on this.
There is no way that I know of to do this from mutt. However, there
is a command-line interface to screen, so you might be able to
transfer the contents of screen's copy buffer to the X clipboard
(actually the selection or cut buffer) by using a mutt macro calling
screen and xclip. I've never looked into doing that, though.
Regards,
Gary