Closed sanmai-NL closed 11 months ago
Hi @sanmai-NL,
As far as I can tell, delta doesn't support the less +F functionality that handles this situation.
I think it's the opposite! delta uses less as its pager, so you can do whatever your installed version of less can do. You can influence the less invocation via the LESS
env var, and the DELTA_PAGER
and PAGER
env vars. See https://dandavison.github.io/delta/environment-variables.html#pager-environment-variables
I'm curious, why would you be following a file with delta? Do you have something writing diff output into a file? It's much more common to pipe diff output directly to delta.
Files such as log files could be being written to continually.
log files aren't usually in diff format, and delta is only designed for viewing diff format input.
Hi @dandavison,
In this case I wasn't using delta
for its main new features. I went off your GitHub description ...
A syntax-highlighting pager for git, diff, and grep output
It turns out delta
is instead
A pager syntax-highlighter for
git
,diff
, andgrep
output
It appears there's no alternative available to less
for the functionality I use in this case.
Interesting, since the pager is directly exposed to potentially untrusted data.
Or maybe "a syntax-highlighting pager that makes no effort to hide its implementation"?
In any case, the "for git, diff, and grep output" bit is key -- it will do odd and undefined things to arbitrary input.
Files such as log files could be being written to continually. As far as I can tell, delta doesn't support the
less +F
functionality that handles this situation.See https://man7.org/linux/man-pages/man1/less.1.html#COMMANDS: