add chomp utility, apply to query results with trailing newline
add "open with default viewer" plus default viewer detect HACK