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 Next Tab | |
1\Command=" | |
copyq: | |
how = +1 | |
source = selectedtab() | |
tabs = tab() | |
i = tabs.indexOf(source) | |
j = (i + tabs.length + how) % tabs.length |
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=Edit File | |
Match=^([a-zA-Z]:[\\\\/]|~|file://|%\\w+%|$\\w+|/) | |
Command=" | |
copyq: | |
var editor = config('editor') | |
var fileName = str(input()) | |
.replace(/^\\/([a-zA-Z])\\//, '$1:/') | |
.replace(/^file:\\/\\//, '') |
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 item = unpack(input()) | |
item['application/x-copyq-time'] = dateString('yyyyMMddhhmmss') | |
write(0, \"application/x-copyq-item\", pack(item))" | |
Icon=\xf017 | |
Input=application/x-copyq-item | |
Name=Store Copy 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] | |
Name=Save Texts from Tab | |
Command=" | |
copyq: | |
function encodeFileName(name) | |
{ | |
return name.replace(/\\s/g, '_').replace(/\\W/g, '') | |
} | |
function addFileNamePart(fileName, item, mime) |
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
class PDCClientWrapper(object): | |
def __init__(self, client, page_size): | |
self.client = client | |
self.page_size = page_size | |
def __call__(self, *args, **kwargs): | |
if 'page_size' not in kwargs: | |
kwargs['page_size'] = self.page_size | |
return self.client(*args, **kwargs) |
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=Activate and Add to Frequent | |
1\Command=" | |
copyq: | |
tab_name = \"Frequent\" | |
source = selectedtab() | |
tab(source) | |
items = selecteditems() | |
p = \"application/x-copyq-\" |
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
#!/usr/bin/env python3 | |
import pyatspi | |
def on_object_focused(event): | |
if not event.source.getState().contains(pyatspi.STATE_FOCUSED): | |
return | |
print(event) | |
extents = event.source.get_extents(pyatspi.DESKTOP_COORDS) |
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: | |
hide() | |
var items = selectedItemsData() | |
var text = '' | |
for (var i in items) { | |
var itemText = str(items[i][mimeText]).trim() | |
text += itemText + '\\n\\n' |
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) |
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 |
OlderNewer