Extend the move-images-to-other-tab.ini Command #1536
Answered
by
hluk
moritzdietz
asked this question in
Q&A
-
I just discovered this "Discussion" Tab in GitHub and am using it for the first time now - let's see how this goes and if someone even sees this. I am trying to extend the move-images-to-other-tab.ini Command so that it can handle multiple MIME Types additionally to |
Beta Was this translation helpful? Give feedback.
Answered by
hluk
Dec 11, 2020
Replies: 1 comment 2 replies
-
The Format/Input field doesn't support patterns, but you can use this command instead: [Command]
Automatic=true
Command="
copyq:
var imageTab = '&Images'
var formats = dataFormats()
for (var i in formats) {
if (formats[i].match(/^image\\//)) {
setData(mimeOutputTab, imageTab)
break
}
}"
Icon=\xf03e
Name=Move Images to Other Tab |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
moritzdietz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Format/Input field doesn't support patterns, but you can use this command instead: