Paste without formatting and removing line breaks

Share your favorite FastKeys commands
Post Reply
Ramakrishna
Posts: 6
Joined: Apr 29th, ’21, 14:50

Post by Ramakrishna » May 4th, ’21, 05:59

I would like to have the paste without formatting to remove line breaks also. When I copied some text from a PDF, I need to use a site https://www.textfixer.com/tools/remove-line-breaks.php to remove the line breaks. Is there any way that can be performed with fastkeys?
User avatar
Tom
Posts: 791
Joined: Nov 24th, ’15, 23:39

Post by Tom » May 4th, ’21, 16:02

This command replaces new line characters in the clipboard content with spaces:

Code: Select all

StringReplace, Clipboard, Clipboard, `r`n, %A_Space%, All 
https://www.autohotkey.com/docs/command ... eplace.htm
Post Reply