#TIL that in #less, if you enable case-insensitive searching, it only searches insensitively if your search string is all lower case.
-
#TIL that in #less, if you enable case-insensitive searching, it only searches insensitively if your search string is all lower case. As soon as you include a capital letter in the search string, it goes back to searching case-sensitively regardless.
Weird how it's easy to miss things like that. I knew that happened in #emacs, but somehow, in 20 years I'd never noticed it in less.
I presume the rationale (in both tools) is that if you went to the extra effort of typing the capital letter, you meant it. I found out that less did this by _pasting_ a search string into it, which invalidates that assumption – it would have been _more_ effort for me to deliberately downcase the string I pasted.
So I guess I must have never done that before, or else, wasn't paying attention when I did!
-
undefined Oblomov shared this topic on