-
-
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
Adaptive numbers style based on length/pagination #1334
Comments
Ahh, we disallow usage of As for your use case: |
Oh wait, --paging <when>
Specify when to use the pager. To disable the pager, use '--paging=never' or its alias, -P. To disable the pager permanently, set BAT_PAGER to an empty string. To con‐
trol which pager is used, see the '--pager' option. Possible values: *auto*, never, always. |
So I have to first cat the file, measures its length ( |
As mentioned on sharkdp#1334 `bat` should not be used as a value for `pager`, this change checks both the balue of `bat` provided as a parameter or as an environment variable.
As mentioned on sharkdp#1334 `bat` should not be used as a value for `pager`, this change checks both the balue of `bat` provided as a parameter or as an environment variable.
As mentioned on sharkdp#1334 `bat` should not be used as a value for `pager`, this change checks both the balue of `bat` provided as a parameter or as an environment variable.
As mentioned on sharkdp#1334 `bat` should not be used as a value for `pager`, this change checks both the balue of `bat` provided as a parameter or as an environment variable.
As mentioned on #1334 `bat` should not be used as a value for `pager`, this change checks both the balue of `bat` provided as a parameter or as an environment variable.
Removing the "bug" label, as #1343 has been merged.
It's not great, no. But I'm not really sure we can (or want) to add support for this in |
I'm closing this for now. Please feel free to comment in case it should be re-opened. |
Hey, I am really enjoying
bat
for peeking at everything, but here is one little pet peeve I recently encountered:I only want line numbers when the auto-pagination sets in. Beforehand, the files are so small that it doesn't matter, and having no numbers makes copying much easier. But in the pager, they are super useful!
I tried to create a workaround by using bat as a pager for itself, but something doesn't seem to work here:
The text was updated successfully, but these errors were encountered: