Skip to content

Option to set line number offset for automatic paging #1620

Description

@MithicSpirit

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 :/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions