Giter Site home page Giter Site logo

Comments (6)

hluk avatar hluk commented on July 22, 2024 2

First I select with the mouse. It therefore becomes stored in Linux secondary clipboard. Then I hit Ctrl-c to copy it to the main clipboard, and nothing happens. It is not placed in the main clipboard history. I think this is because Linux sees it's already in the second clipboard, so doesn't actually copy it?

Ah, yes, this is correct.

I see it is still problem for example in a terminal app (Kitty):

  • Select text in the terminal with mouse (to copy just to the primary buffer)
  • CopyQ does not store the selection ("Store test selected using mouse" is disabled)
  • ..but copies it to secondary buffer ("Paste mouse selection with keyboard" is enabled)
  • In the terminal, press Ctrl+Shift+C to copy the selected text to clipboard (secondary buffer)
  • CopyQ notices a change, but does not store the new clipboard content because the monitored formats themselves did not change

I think I can fix this: CopyQ can also check if it "owned" the previous clipboard content but not the new one.

from copyq.

paul1149 avatar paul1149 commented on July 22, 2024 1

I've also found it inconsistent. I ended up turning it all off, and then back on. Currently I have "Store clipboard" and "Paste mouse selection with keyboard" enabled. And it's been working most of the time. Ctrl-v pasting of the mouse selection is the bomb.

from copyq.

Lonniebiz avatar Lonniebiz commented on July 22, 2024

I wish I knew how to fix this issue. I'm in the habit of keying ctrl-c twice due to so many failures from only doing it once. That first time usually gets the selected text into copyQ, but ctrl-v doesn't achieve a paste, unless I copy multiple times.

from copyq.

paul1149 avatar paul1149 commented on July 22, 2024

That's great Lukas. I think you've very succinctly stated the problem.

from copyq.

Lonniebiz avatar Lonniebiz commented on July 22, 2024

I'm running version 6.4.0 on Debian 12. What version must I run to enjoy this fix?

I don't understand the intricacies of copying and pasting as well as you guys do (when it comes to the primary and secondary buffers you've mentioned).

I use a remote desktop program called Remmina a lot. Without CopyQ I can typically ctrl-c, copying either locally or remotely, and it ends up in both my local and remote clipboards.

With CopyQ, I will sometimes copy something, and see it in CopyQ as the latest entry, but it won't paste remotely until I go into CopyQ and hit the "Activate Items" icon (which I usually click multiple times for good measure because I think I recall it requiring multiple clicks at times). Or, I'll control+C multiple times locally in order to ensure that my copy is also in the remote machine I'm accessing with Remmina. If I only hit ctrl-c once, it will often not paste remotely.

I'm hoping this fix addresses this scenario also. Perhaps its the same problem, but I'm not qualified to be sure.

Or, maybe the reason behind this is security, and I just need a better understanding about when I need to copy more than once for security sake. Not sure.

from copyq.

hluk avatar hluk commented on July 22, 2024

I'm running version 6.4.0 on Debian 12. What version must I run to enjoy this fix?

It will be available in the next release.

You can install the development version from here: https://download.opensuse.org/repositories/home:/lukho:/copyq/Debian_12/

from copyq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.