From 8d37be097ded0204f5003868196d00f1598c0d45 Mon Sep 17 00:00:00 2001 From: breadcat Date: Thu, 15 Nov 2018 13:20:47 +0000 Subject: Add slash character replacement --- ahk-assistant.ahk | 1 + 1 file changed, 1 insertion(+) (limited to 'ahk-assistant.ahk') diff --git a/ahk-assistant.ahk b/ahk-assistant.ahk index fdf9ba6..24c39eb 100644 --- a/ahk-assistant.ahk +++ b/ahk-assistant.ahk @@ -600,6 +600,7 @@ pasteClipboard() { ; manually paste clipboard, minus most formatting StringReplace, clipboard, clipboard, ·,, All ; remove middots StringReplace, clipboard, clipboard, %A_Tab%,, All ; remove tabs StringReplace, clipboard, clipboard, `r,, All ; remove half of line breaks + StringReplace, clipboard, clipboard, /,%A_Space%, All ; forward slashes mess up linux paths StringReplace, clipboard, clipboard, `n,, All ; remove other half of line breaks clipboard = %clipboard% ; trim whitespace SendRaw %clipboard% -- cgit v1.2.3