Whenever I copy any text via X11's copy/paste feature, I would like all formatting to be removed. I waste time daily dumping the text into a terminal, then copying again.
Is this possible?
Whenever I copy any text via X11's copy/paste feature, I would like all formatting to be removed. I waste time daily dumping the text into a terminal, then copying again.
Is this possible?
This should do it:
xclip -selection c -o | xclip -selection c
This will also do it in case you have xsel instead of xclip. You may need to use the -b option on both commands if it's in your CLIPBOARD instead of your primary SELECTION (See xsel man page).
xsel | xsel
Mac users can do this with pbcopy / pbpaste.
pbpaste | pbcopy