Add the option to only print matching line parts

As suggested in #231. This still needs some work to handle the case
where the pattern is matched multiple times on one line. Currently this
will print the matched part twice on the same line with no separation.

It also may not play nicely with certain other options, but hopefully
it's a decent start.