Quickly trim off timestamps and/or nicknames from clipboard contents after copying a selection of text from a chat buffer. Useful for copy/paste operations and cross-posting to multiple channels.
Usage: /clip [N]
Removes the first N words from each line of clipboard text.
If N is not specified, it will review the clipboard contents so you can preview it before pasting.
Example:
[12:34] Hey, I just saw this headline on Facebook. Looks like a crap storm!
[12:34] http://www.news.site/Russia-invades-Poland-Penguins-Revolt
[12:34] Time we started sending military support to the penguins
Type: /clip 2
Hey, I just saw this headline on Facebook. Looks like a crap storm!
http://www.news.site/Russia-invades-Poland-Penguins-Revolt
Time we started sending military support to the penguins
;Usage: /clip [N] -- Removes the first N words from each line of clipboard text.
/clip { ; by Raccoon 05-Jan-2013
window -aeDz @clip | clear @clip
var %i = 1, %n = $cb(0)
WHILE (%i <= %n) { echo -i @clip $gettok($cb(%i),$calc(1 + $1) $+ -,32) | inc %i }
if ($1) {
clipboard
var %i = 1, %n = $line(@clip,0)
WHILE (%i <= %n) { clipboard -an $line(@clip,%i) | inc %i }
} }
Interesting script. I made something like this that reminds me of this http://pastebin.com/u756wShi it's used to remove the timestamps from mIRC log files. Usage: /remstamp File
When I post "Comment Reserved" that means I may edit and use the top-comment for updates and the like. I post that on all my snippets. Edit: Seems new threaded comments are posted in reverse order these days, so it may be obsolete behavior now.
/help /window -- You can use the -D switch on just about any custom /window to provide greater flexibility to the user. There is never a situation when you shouldn't use -D.
Also, you can change '-aeDz' to '-h' if you don't want to see the window.