Skip to content

Extend the move-images-to-other-tab.ini Command #1536

Answered by hluk
moritzdietz asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@moritzdietz
Comment options

@hluk
Comment options

Answer selected by moritzdietz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants