Last active
November 16, 2016 16:06
-
-
Save sheepeeh/bd9fc8b59a2c8f31ab1a to your computer and use it in GitHub Desktop.
Autohotkey text-only paste and join lines paste
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
; Text-only paste (strips all formatting) | |
#v:: | |
Clip0 = %ClipBoardAll% | |
ClipBoard = %ClipBoard% | |
Send ^v | |
Sleep 50 | |
ClipBoard = %Clip0% | |
VarSetCapacity(Clip0, 0) | |
Return | |
; Join lines when pasting (useful for pasting text from PDFs) | |
#j:: | |
StringReplace, ClipBoard, ClipBoard, `r`n, %a_space%, All | |
ClipWait | |
Send ^v | |
Return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment