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.
Tested on less 444 and less 436.
explaination
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.
-S? If lines are longer than your output, the remainder will just be discarded, and you will lose information in your diff. Also, since I am passing by: I hope you use thecolorextension to get colorized diffs. – Daniel Andersson May 11 '12 at 10:06hg. – seler May 11 '12 at 13:26