Skip to content

Unable to make delta use pager always #604

Answered by dandavison
osa1 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @osa1, thanks!

I think that you can get what you want by doing something like export DELTA_PAGER='less -R'.

I am not certain that everything is absolutely perfect regarding the precedence of the various arguments and env vars involved. For example, I personally thought that the following would page, but it did not:

echo hello | LESS= DELTA_PAGER= PAGER= delta --paging=always

So, there might be some improvements to make to delta! But I think if you are prepared to set that env var then you can get the behaviour you want now.

Replies: 1 comment 15 replies

Comment options

You must be logged in to vote
15 replies
@osa1
Comment options

@dandavison
Comment options

@osa1
Comment options

@dandavison
Comment options

@osa1
Comment options

Answer selected by osa1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants