Last active
June 20, 2020 09:34
-
-
Save philsnow/48ae8a31f7e063b23d4013470f071783 to your computer and use it in GitHub Desktop.
hammerspoon snippet that allows me to paste where I want
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
-- other stuff in hammerspoon init.lua | |
require("pasteboardtype") |
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
local pasteboard = require("hs.pasteboard") | |
hs.hotkey.bindSpec( | |
{{"cmd", "alt"}, "V"}, | |
function() | |
hs.eventtap.keyStrokes(pasteboard.getContents()) | |
end | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment