Thursday, May 2, 2024
23
rated 0 times [  23] [ 0]  / answers: 1 / hits: 14508  / 2 Years ago, mon, august 8, 2022, 9:14:46

I don't understand the middle click paste.



Sometimes I highlight text, middle click in the window where I want it to go and it does what I want. Sometimes it doesn't.



For instance, when I highlight text in Firefox, then go and middle click into terminal vim, nothing happens.



What is going on?



Thank you!


More From » command-line

 Answers
4

Caused by separate X/DE clipboards; keep them synchronized with ClipIt




  • As ImaginaryRobots' answer explains there are two different clipboards: the X clipboard and the desktop environment/window manager clipboard (Gnome/Unity, KDE, etc.); depending on the selection method used (i.e. just highlighting, or an explicit Ctrl-C/right-click copy, etc.), the two clipboards may not be synchronized.




    • Thus, there are often issues when copying/pasting between GUI programs and the terminal.


  • The easiest solution if you have this problem is to use a tool that keeps both these separate clipboards in sync. I recommend ClipIt (sudo apt-get install clipit)




    • Start clipit (add to Startup Applications for convenience), and under Preferences, check both the Use Primary and Synchronize Clipboards options:



    enter image description here



[#36611] Tuesday, August 9, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
homerurhyth

Total Points: 338
Total Questions: 113
Total Answers: 105

Location: Moldova
Member since Sat, Aug 6, 2022
2 Years ago
;