How to debug this CopyQ 'join' command? #2790
Unanswered
DeanintheMachine
asked this question in
Q&A
Replies: 2 comments 3 replies
-
I think it was fixed in version 9.0.0. Can you verify? |
Beta Was this translation helpful? Give feedback.
0 replies
-
The same problem on Arch Linux (CopyQ version 9.1.0): ScriptableByteArray(0x5787a8c5fd80) after join command |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Happy CopyQ user here, getting my feet wet with commands. I pasted this example join command into my CopyQ version 8.0.0 on linux: https://github.com/hluk/copyq-commands/blob/master/Application/join-selected-items.ini
And here is the commands's code:
copyq:
const separator = '\n';
var sel = new ItemSelection().current();
const texts = sel.itemsFormat(mimeText);
sel.selectAll();
add(texts.join(separator));
sel.invert();
selectItems(sel.rows()[0]);
The command does run, but instead of showing the joined entries, it shows this:
ScriptableByteArray(0x55a84559d2f0)
ScriptableByteArray(0x55a84559c600)
I am guessing the culprit is the itemsFormat(mimeText) call? I dug a bit into the code, but the data structures are way over my head.
Would anyone have an idea what may be going wrong? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions