Anonymous avatar Anonymous committed 5ff3df7

show the date, otherwise we screw up wrapping

Comments (0)

Files changed (1)

extras/cw_color.sh

 done
 
 # in order, do
-# change notice continuation lines: remove the 11 characters the date would take, color the rest of the line blue
-# change normal continuation lines: remove the 11 characters the date would take
-# change notice lines: remove date, color blue
-# change CTCP ACTION lines: remove date, color time blue, color nick cyan, use * instead of MARGIN, repeat nick cyan
-# change normal lines: remove date, color time blue, colur nick cyan
-# change lines that are as of yet unmatched: remove date, color time blue
-# color nick red found anywhere
+# change notice continuation lines: color the line blue
+# change notice lines: color blue
+# change CTCP ACTION lines: remove ACTION and MARGIN and color line magenta
+# change normal lines: color time blue, color nick cyan
+# change lines that are as of yet unmatched: color time blue
+# color nick red and add bell
 
 cw "$IN" "$OUT" "$MARGIN" |
 	sed \
-		-e "s/^ \{11\}\( *!.*\)$/${blue}\1${reset}/" \
-		-e "s/^ \{11\}\( *[$MARGIN]\)/\1/" \
-		-e "s/^\([-0-9]\{10,10\}\) \([:0-9]\{5,5\}\)\( *-\?!-\?.*\)$/${blue}\2\3${reset}/" \
-		-e "s/^\([-0-9]\{10,10\}\) \([:0-9]\{5,5\}\)\( *<\?\)\( *[^ $MARGIN]*\)\( \?[$MARGIN]\) ACTION/${blue}\2${reset}\3${cyan}\4 ${magenta}* ${cyan}\4${reset}/" \
-		-e "s/^\([-0-9]\{10,10\}\) \([:0-9]\{5,5\}\)\( *<\?\)\( *[^ $MARGIN]*\)\( \?[$MARGIN]\)/${blue}\2${reset}\3${cyan}\4${reset}\5/" \
-		-e "s/^\([-0-9]\{10,10\}\) \([:0-9]\{5,5\}\)/${blue}\2${reset}/" \
+		-e "s/^\( *!.*\)$/${blue}\1${reset}/" \
+		-e "s/^\([-0-9]\{10\}\) \([:0-9]\{5\}\)\( *-!-.*\)$/${blue}\1 \2\3${reset}/" \
+		-e "s/^\([-0-9]\{10\}\) \([:0-9]\{5\}\)\( *<\?\)\( *[^ $MARGIN]*\)\( \?[$MARGIN]\) ACTION\(.*\)$/${blue}\1 \2${reset}\3${cyan}${magenta}\4\6${reset}/" \
+		-e "s/^\([-0-9]\{10\}\) \([:0-9]\{5\}\)\( *<\?\)\( *[^ $MARGIN]*\)\( \?[$MARGIN]\)/${blue}\1 \2${reset}\3${cyan}\4${reset}\5/" \
+		-e "s/^\([-0-9]\{10\}\) \([:0-9]\{5\}\)/${blue}\1 \2${reset}/" \
 		-e "s/$NICK/\a${red}&${reset}/g" 
 
 # vim: set ts=4 sw=4 noexpandtab:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.