Replies: 1 comment
-
I also needed this and was able to make a script, although it's not exactly what you want, but the trick is calling [Command]
Automatic=true
Command="
copyq:
const selectionTab = '&Primary Selection';
const imageTab = '&Images';
function hasImageFormat(formats) {
for (const format of formats.values()) {
if (format.startsWith('image/'))
return true;
}
return false;
}
// Runs only for clipboard changes (i.e.: not primary selection)
if (isClipboard()) {
const formats = dataFormats();
if (hasImageFormat(formats)) {
setData(mimeOutputTab, imageTab);
}
setCurrentTab(data(mimeOutputTab))
} else {
setData(mimeOutputTab, selectionTab);
}"
Icon=\xf15b
Name=Move to Tab |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I select a text in copyq window and relaunch it after copying some new text, I see that the focus is still on that previous item. Instead I would like to always have the newest item on focus upon launch. How do I do this?
Beta Was this translation helpful? Give feedback.
All reactions