hluk / copyq-commands

Useful commands for CopyQ clipboard manager.
328 stars 72 forks source link

Copy-to-tab makes clipboard selection to copy everything #78

Closed gerardbosch closed 10 months ago

gerardbosch commented 10 months ago

Hi,

I'm using this command https://github.com/hluk/copyq-commands/blob/master/Automatic/move-images-to-other-tab.ini to copy (not move) images to the "Images" tab.

I don't know how to programmatically do it, so I installed the command and in "Advanced" tab, I set the "Copy to tab: clipboard":

image

It did the job (although I'd like to know how to alter the command for no manual setup)

The issue

I tried removing the command and starting over again and same result. When I disable the command the mouse selection works fine.

CopyQ Clipboard Manager 7.1.0 Qt: 6.5.2 Compiler: GCC Arch: x86_64-little_endian-lp64 OS: Ubuntu 23.04 X11

N.B. I did exactly the same with this command to copy URLs in a tab and the mouse works just fine! https://github.com/hluk/copyq-commands/blob/master/Automatic/tab-for-urls-with-title-and-icon.ini

hluk commented 10 months ago

I think you need to set Format field in Advanced tab to some image/* format.

gerardbosch commented 10 months ago

Thanks for your answer!

I tried image/* but nothing was copied. Then I used image/png and seems to work! Now images are present in both clipboard tab and Images 🙂 and the mouse selection is not copied anywhere! ✅

image