Skip to content

Instantly share code, notes, and snippets.

@sheepeeh
Last active November 16, 2016 16:06
Show Gist options
  • Save sheepeeh/bd9fc8b59a2c8f31ab1a to your computer and use it in GitHub Desktop.
Save sheepeeh/bd9fc8b59a2c8f31ab1a to your computer and use it in GitHub Desktop.
Autohotkey text-only paste and join lines paste
; 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