1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-23 21:52:31 +01:00

Make line limits cli configurable

This commit is contained in:
einfachIrgendwer0815
2024-03-15 19:09:07 +01:00
parent 623ed659c1
commit f7f00c8e15
8 changed files with 97 additions and 12 deletions

View File

@@ -155,6 +155,17 @@ Options:
escape sequences unless the syntax highlighting language is plain text. Possible values:
auto, always, *never*.
--disable-line-limits
Disables all line limits. Short for `--soft-line-limit 0 --hard-line-limit 0`.
--soft-line-limit <BYTES>
Line length (in bytes) at which the line will be ignored. Zero disables this limit.
Default: 64 kB
--hard-line-limit <BYTES>
Line length (in bytes) at which bat will abort. Zero disables this limit.
Default: 256 kB
--style <components>
Configure which elements (line numbers, file headers, grid borders, Git modifications, ..)
to display in addition to the file contents. The argument is a comma-separated list of

View File

@@ -51,6 +51,8 @@ Options:
Display all supported highlighting themes.
-s, --squeeze-blank
Squeeze consecutive empty lines.
--disable-line-limits
Disables all line limits.
--style <components>
Comma-separated list of style elements to display (*default*, auto, full, plain, changes,
header, header-filename, header-filesize, grid, rule, numbers, snip).