Ben Reser wrote on Mon, Feb 03, 2014 at 23:36:15 -0800: > A lot of these will make a lot more sense if we can reasonably default to > something like the FRSX option set that git passes to less by default. They > do > this by setting the LESS environment variable (if not already set and the > pager > has no arguments).
The way they do it is broken except when $LESS is unset. When it is set, the user-configured envvar is ignored (so, for me, -i[1] doesn't get added) and the flags that git's use needs (e.g. -R) are not added. They should be enabling the -FSRX options without overriding anything else the user has enabled in $LESS. (Possibly that's just running 'less -FSRX' or 'less -!F -!S -!R -!X' or something, and leaving the envvar alone.) Daniel [1] Makes /-searches case-insensitive. > In our case I'd suggest FX. I guess R doesn't do much for > us at this point since we don't emit color codes and S seems like a bad idea > for a default.