open always the same tab

25 views
Skip to first unread message

Boyan Molina

unread,
May 9, 2023, 4:19:21 PM5/9/23
to co...@googlegroups.com
Hi, is there an option to always have the same tab selected when opening CopyQ?

Lukáš Holeček

unread,
May 10, 2023, 4:49:24 AM5/10/23
to Boyan Molina, co...@googlegroups.com
Hi,

You can add the following command to override the "show" function in CopyQ, but this won't work when clicking on the tray (here is how to add the command to CopyQ):

[Command]
Command="
    const defaultTab = 'clipboard'

    var show_ = global.show
    global.show = function(otherTab) {
        if (otherTab === undefined)
            show_(defaultTab)
        else
            show_(otherTab)
    }"
Icon=\xe185
IsScript=true
Name=Always Show Clipboard Tab


Lukas

On Tue, May 9, 2023 at 10:19 PM Boyan Molina <boy...@gmail.com> wrote:
Hi, is there an option to always have the same tab selected when opening CopyQ?

--
You received this message because you are subscribed to the Google Groups "CopyQ" group.
To unsubscribe from this group and stop receiving emails from it, send an email to copyq+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/copyq/CAODaL07vH9RkABQDFakM%2BzqQkVZb%2BG4NOxR_qA3YGKzMQWU9oA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages