I use a multiline prompt in my shell, which means that when i use bat on a file that is slightly shorter than my screen it overflows the screen (since the prompt is taking up a few lines), but does not engage the pager since it's not quite long enough. If there was an option to set an offset, I could set it to the number of lines in my prompt and then it would trigger when screen_height - offset was less than the number of lines.
Additionally, this might be helpful for people who are fine with a little bit of scrollback if they set a negative value for the offset.
Note: I'm not sure "offset" is the best name for this, but it's the only thing that came to mind :/
I use a multiline prompt in my shell, which means that when i use bat on a file that is slightly shorter than my screen it overflows the screen (since the prompt is taking up a few lines), but does not engage the pager since it's not quite long enough. If there was an option to set an offset, I could set it to the number of lines in my prompt and then it would trigger when
screen_height - offsetwas less than the number of lines.Additionally, this might be helpful for people who are fine with a little bit of scrollback if they set a negative value for the offset.
Note: I'm not sure "offset" is the best name for this, but it's the only thing that came to mind :/