Replies: 1 comment 2 replies
-
I prefer not to have other tabs cluttered with semi-random clipboard content. You can change the behavior by adding the following command (here is how to add the command to CopyQ): [Command]
Command="
const option = 'clipboard_tab';
var onTabSelected_ = global.onTabSelected;
global.onTabSelected = function() {
settings(option, selectedTab());
return onTabSelected_()
}
var onClipboardChanged_ = global.onClipboardChanged;
global.onClipboardChanged = function() {
const clipboardTab = settings(option);
if (clipboardTab)
setData(mimeOutputTab, clipboardTab);
return onClipboardChanged_();
}"
Icon=
IsScript=true
Name=Store Clipboard to the Current Tab |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There is the "current tab" (the one selected in the tab page).
But then there is a config item
clipboard_tab
that specifies where new clipboard content will go.This makes it rather awkward to switch tabs for storing new clipboard items.
To me it would make much more sense to put new clipboard items in the "current tab", not in a tab that has to be set in the preferences.
Beta Was this translation helpful? Give feedback.
All reactions