-
-
Save hmijail/78b42f9becc52e137323ef024cd2c910 to your computer and use it in GitHub Desktop.
| [Command] | |
| Command=" | |
| copyq: | |
| //works as of CopyQ v10.0.0 | |
| var c = count() | |
| if (c==0) { | |
| fail() | |
| } | |
| select(0) | |
| try { | |
| paste() | |
| } catch (e) { | |
| popup('Pasting Failed', e) | |
| abort() | |
| } | |
| if (config('move') == 'true') { | |
| remove(c-1) | |
| } else { | |
| remove(0) | |
| } | |
| popup('LIFO-pasted', str(c-1)+\" remaining\", 2000) | |
| " | |
| GlobalShortcut=meta+ctrl+v | |
| IsGlobalShortcut=true | |
| Name=HM Clipboard LIFO |
Not working for me either, but seems to be a problem with the software, not this script.
I tried to implement by doing f6, add a global shortcut command (find script option) and then entering the script under command.
I can trigger the command, but paste() does not paste so it just ends up removing items from the clipboard.
Unfortunately I can only say that when I posted it, it worked... and then it stopped working. I don't remember if it was because of a CopyQ update or an OS update; the failure mode changed a couple of times and I never looked seriously into making it work again.
Probably can be fixed in a similar way that the FIFO counterpart:
https://gist.github.com/hmijail/5676ce439edbd3c1c5a0e46e04c5293a#gistcomment-3965258
I just updated it to a version that works with CopyQ v10.0.0.
Thank you @waiting-for-dev !
It is not working it pastes two times the same and jumps over on item in clipboard