I set up Mercurial in .hgrc
to use less
as a pager together with customized colors and templates following this guide:
[pager]
pager = LESS='FSrX' less
[templates]
# ...
[color]
mode=terminfo
This works very nicely and I'd like to keep this for all commands except for hg diff
. For this command only I'd like to use a completely different mechanism:
- No ANSI escape codes in output.
- Use https://github.com/dandavison/delta as a pager.
Is it possible to configure Mercurial this way?