Created
April 29, 2021 19:29
-
-
Save rebeccajae/42e890e030930154a24fb1b37e0bb484 to your computer and use it in GitHub Desktop.
Create a cmd-opt-v hotkey that pastes once, clearing the clipboard simultaneously.
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
hs.hotkey.bind({"cmd", "alt"}, "V", function() | |
local pasteContent = hs.pasteboard.getContents() | |
hs.pasteboard.clearContents() | |
hs.eventtap.keyStrokes(pasteContent) | |
end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment