Menu

#22 Autopaste of selected item doesn't work in GNOME terminal

closed-invalid
nobody
None
5
2011-11-15
2011-11-02
tabbernuk
No

^V is displayed in terminal after two tries of pasting the item.

Discussion

  • Cristian Henzel

    Cristian Henzel - 2011-11-02

    ClipIt uses xdotool to send a 'Ctrl+V' command to paste the item. Most terminals don't recognize the 'Ctrl+V' combination as paste but rather 'Ctrl+Shift+V', that means you have to change the paste shortcut to 'Ctrl+V' for automatic paste to work correctly.
    I have also explained this in http://clipit.rspwn.com/release-1-4-0/

     
  • Cristian Henzel

    Cristian Henzel - 2011-11-02
    • status: open --> closed-invalid
     
  • ZaWertun

    ZaWertun - 2011-11-02

    I think this patch might help: http://paste.kde.org/141260/

     
  • Cristian Henzel

    Cristian Henzel - 2011-11-02

    Well, Xorg has actually 2 clipboards (actually 3, but the third one isn't really useful). The first one is called "primary" and the second one "clipboard". Most users only care about "clipboard", and that's what the Ctrl+v combination usually pastes, but there's also the "primary" clipboard, which can have different contents and which usually gets pasted with the Shift+Insert combination. So, changing the key combination to Shift+Insert, actually changes what gets pasted, and not how it gets pasted -- this might confuse most users, I guess.

    Like I said, to paste the contents of the "clipboard" clipboard in most terminals, you usually have to use the Ctrl+Shift+v combination, but it can be changed usually to Ctrl+v...

     
  • Cristian Henzel

    Cristian Henzel - 2011-11-02

    BTW, this link was very useful for me to understand how the clipboards work: http://standards.freedesktop.org/clipboards-spec/clipboards-latest.txt . You can have a read if you want to learn more about the clipboards and how they work (or how they are supposed to work).

     
  • ZaWertun

    ZaWertun - 2011-11-02

    Ok, and what about if I use "xdotool click 2" to emulate middle mouse click ?

     
  • tabbernuk

    tabbernuk - 2011-11-02

    Sounds like a solution to me. Although middle click could be overridden, the same goes for Ctrl+V. And since GNOME standard terminal (which many many people use) overrides Ctrl+V, I'd choose middle click instead of Ctrl+V. As far as I don't know any standard application that overrides middle click in some unpleasant way.

    Reading http://library.gnome.org/users/gnome-help/stable/mouse-middleclick.html.en I believe the middle click is a way to go.

     
  • tabbernuk

    tabbernuk - 2011-11-02
    • status: closed-invalid --> open-invalid
     
  • Cristian Henzel

    Cristian Henzel - 2011-11-02

    Middle click usually pastes the contents of the "primary" clipboard, which is not what most people expect...

     
  • Cristian Henzel

    Cristian Henzel - 2011-11-15
    • status: open-invalid --> closed-invalid
     

Log in to post a comment.