Last active
March 24, 2017 14:34
-
-
Save hluk/4a7be6db8fe1c072469e to your computer and use it in GitHub Desktop.
CopyQ - Store Copy Time
This file contains hidden or 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 | |
Transform=true |
Does the error occur every time you copy something?
Make sure Format field for the command is application/x-copyq-item
.
With the command above an empty item will be created with only the timestamp as application/x-copyq-item
.
But https://github.com/hluk/CopyQ/wiki/Command-Examples#show-copy-time works
Moved to copyq-commands repository.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With CopyQ 2.4.8:
Command “copyq eval --
var item = unpack(input())
item['application/x-copyq-time'] = dateString('yyyyMMddhhmmss')
write(0, "application/x-copyq-item", pack(item))”
Exit code: 1
CopyQ client ERROR: Error: Invalid number of arguments!
--- backtrace ---
()@:2
--- end backtrace ---