-
-
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 |
It is not working it pastes two times the same and jumps over on item in clipboard
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 !
I don't know how many apps and hacks I have tried during the last decade to try to have this functionality - which CopyPaste Pro offered in the pre-OS X Mac OS, but somehow lost long ago. Nothing worked well enough or offered the exact functionality. Even heavy-weights like QuickSilver and LaunchBar and Alfred came short.
And turns out that the CopyQ project does it perfectly and easily... and of course even gives you the ability to make your own shade of it. Want a FIFO? Have a FIFO!