While trying to improve output from
hg diff I've noticed that
less -F option does not work with -S option. Why is that happening and how to achieve desired effect?
Here is handout from man:
-F or --quit-if-one-screen Causes less to automatically exit if the entire file can be dis- played on the first screen. -S or --chop-long-lines Causes lines longer than the screen width to be chopped rather than folded. That is, the portion of a long line that does not fit in the screen width is not shown. The default is to fold long lines; that is, display the remainder on the next line.
less 444 and
I was mistaken by thinking that
-S will cut excess bytes. Content goes to the right screen.
To achieve what I wanted I could just use
(...) | cut -b -80 | less -FSX.