Keep scroll position when updating matches view
It can get quite annoying when reset scroll position every time the
regular expression is updated, now it won't change the position anymore.
Use -p to print matched lines
Printing the regular expression used for matching is not such a good
use-case. Printing matched lines on the other hand, will allow using rex
as an interactive regex-based text filter.
Strip \r from lines
This fixes issues with files using CRLF as line ending.
Remove sh syntax in README
Rename --print-regex to just --print
* Use passive voice where possible
* Avoid "regex" and say "input field" instead
* Other style improvements
Wrap readme to 80 columns instead of 72
Improve overall installation process
Use pflag module for option parsing
The default flag module makes long options a bit confusing by adding a
single dash before them. With pflag, long options have --option and -o
for short options.
It should be opt-in instead of opt-out.