This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Command] | |
Name=Search All Tabs | |
Command=" | |
copyq: | |
// Name for tab for storing matching items. | |
var search_tab_name = \"Search\" | |
// Returns true iff item at index matches regex. | |
function item_matches(item_index, re) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Command] | |
Command=" | |
copyq: | |
var snippetsTabName = 'Snippets' | |
function newVarRe(content) { | |
return new RegExp('\\\\${' + content + '}', 'g') | |
} | |
function getText(item) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Command] | |
Command=" | |
copyq: | |
// path to python script | |
// (always use forward slash as path separator) | |
script = 'c:/scripts/modify_text.py' | |
// get old text from clipboard | |
var oldText = str(clipboard()) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Commands] | |
1\Name=Move to Trash (Undoable) | |
1\Command=" | |
copyq: | |
trash_tab = \"(trash)\" | |
tab_mime = \"application/x-copyq-user-tab\" | |
index_mime = \"application/x-copyq-user-index\" | |
time_mime = \"application/x-copyq-user-time\" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Command] | |
Command=" | |
copyq: | |
var suffices = { | |
'image/svg': 'svg', | |
'image/png': 'png', | |
'image/jpeg': 'jpg', | |
'image/jpg': 'jpg', | |
'image/bmp': 'bmp', | |
'text/html': 'html', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Command] | |
Automatic=true | |
Command=" | |
copyq: | |
// Select session to send data to. | |
var sessions = [ | |
\"my_session_2\", | |
\"my_session_3\", | |
\"my_session_4\", | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Command] | |
Command=" | |
copyq: | |
var x = 1850 | |
var y = 1000 | |
var snippetsTabName = 'Snippets' | |
// List snippets instead of search combo box? | |
var listSnippets = false | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Command] | |
Automatic=true | |
Command=" | |
copyq: | |
var tabName = '&url' | |
function lower(data) { | |
return str(data).toLowerCase() | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Command] | |
Command=" | |
function showOwner() { | |
popup( | |
isClipboard() ? 'Clipboard Owner' : 'Selection Owner', | |
data(mimeWindowTitle) | |
) | |
} | |
var onClipboardChanged_ = onClipboardChanged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Command] | |
Automatic=true | |
Command=" | |
copyq: | |
var text = str(data(mimeText)) | |
if (!text) | |
abort() | |
text += '\\n\\n' | |
setData(mimeText, text) |
NewerOlder