4

Looking for utility/macro/plugin to paste texts from clipboard omitting leading/trailing white spaces. Couldn't find this feature in macros in PhraseExpress or utilities like PureText.

Thanks.

1

Consider CudaText editor, it has plugin CudaExt, which has such command: "Paste trimmed text". You can find command in the Command Palette dialog. It works with one caret only.

It is also in the menu: Plugins / CudaExt / Insert / Paste trimmed text.

1

After years of trying many, I have personally found Ditto to be the best all round Windows clipboard manager. I have been awarded a few answers for it on this site, which you can search for. Or Google for reviews, they will all agree.

By pure coincidence, the latest update, a month ago, now supports:

3.21.258.0 09-03-2018

•Per-monitor dpi awareness
•Added chocolatey install support
•Show image size in the description window
•Show HTML in the description window
•Show a message when there are no search results
•Added command line option to paste plain text /PlainTextPaste
•Special Paste option to trim white space

That last item should be what you are looking for. Try it, there really is no better clipboard manager

1

Ok, found "trim" macro in PhraseExpress does this trick :)

http://www.phraseexpress.com/ - freeware for personal use. Available as installer as well as portable.

I've been using this for many typing and macro uses. So I incorporated this macro as well. Very simple, create new phrase -> insert macro -> Text operations ->Trim ->Clipboard Set a hotkey for ease of use. I'm done :)

  • 4
    Glad that you found your answer ;-) Could you expand it a little. For instance, is a link needed to download the macro, or a link to its documentation. Don't forget that you can accept your own answer, although the system might make you wait a bit. – Mawg Sep 28 '18 at 9:10
  • 1
    Okay the solution is updated. – Justin D Oct 9 '18 at 9:36
  • That's great, Justin (+1). That will help others in future ;-) – Mawg Oct 9 '18 at 9:37
0

Keyboard Maestro (macOS) allows all sorts of clipboard manipulation with macros using search and replace.

0

http://hluk.github.io/CopyQ/ is pretty great. I used it to automatically create a file containing the clipboard contents whenever it changes. It supports creating text files if the clipboard is basic text, png (or other extensions) if I copy image data, '.url' files for urls, etc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.