dandavison / delta

A syntax-highlighting pager for git, diff, grep, and blame output
https://dandavison.github.io/delta/
MIT License
21.32k stars 358 forks source link

🐛 PAGER env variable will omit command line parameters #1684

Open XhstormR opened 1 month ago

XhstormR commented 1 month ago

I set the Pager environment variable to use ov as the pager with the -F option:

export PAGER='ov -F'

Pager environment variables work, but the -F parameter does not take effect, -F stands for quit if the output fits on one screen. I guess it may be because it is not included in quotes when passing delta paging, causing the -F parameter to be lost.

-F in the env variables not take effects, still in the pager:

image

I have to config pager in git config files, will take the -F options:

    pager = delta --pager='ov -F'

-F in the git config files works:

image