A common workflow for me is to type git log -p
then search using /
for text to find changes in the history. I'm on OSX, using the default pager:
$ git config --global core.pager
# no output (meaning default pager, less)
When I search, flavors of regexes work, like a.+b
, however, I can't seem to make word boundaries work. I've tried all of the following:
<word>
\<word\>
\bword\b
\v<word>
The last one is attemping to mimic Vim's very magic
switch, which I don't know if it exists in less
but it doesn't error. None of these searches return matches.
I've tried turning off color with git config --global color.ui false
(default value auto
) but this doesn't seem to have any effect.
This question makes it sound like \<
should work? But it doesn't.
My less version:
$ less --version
less 418
Copyright (C) 1984-2007 Mark Nudelman