-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use PAGER environment variable instead of 'less' #158
Comments
Good idea! |
How would we handle command line arguments to the pager? Currently, we pass I guess the only option would be to pass no command-line arguments (can/should command-line arguments be specified in |
I think, support should be added for each pager in |
|
@moonfruit |
@sharkdp You are right about that many programs support |
|
I think a reasonable detection would follow:
In either case that we use an environment variable, it would be convenient to support including flags for the pager (e.g., my personal |
I think we could try to support command-line arguments by splitting the contents of PAGER="my-pager --foo='complex argument'" |
For those looking for a temporary alternative, I'm using an alias as follows. In my case, I wanted to remove the "-X" flag to
|
I have implemented a first version of this in #192. It'd be great if someone could review this. |
Released in bat 0.5. |
I am running 0.6.0 and I am still not able to scroll in iTerm. Is there specific flag or something that I need to set? |
I'm using the default Terminal app in Mac, and the suggestion from @achalddave in the above comment didn't work for me. I modified the bash function to use RS instead of RF, and was able to get mouse scrolling to work:
|
You can trick bat into passing no arguments to the pager (particularly less) by setting |
|
This issue is quite old. In the meantime we have a pager handling which is quite robust, I believe. We actually do interpret the command-line arguments in Lines 31 to 44 in e9210c0
|
bat
sould use pager name fromPAGER
environment variable, and only useless
ifPAGER
is unset.The text was updated successfully, but these errors were encountered: