einfachIrgendwer0815
dbe25ba5e6
Include shell completions in the executable
2024-12-01 09:39:17 +01:00
Keith Hall
60693db73f
Merge branch 'master' into dark-light
2024-11-13 20:33:37 +02:00
einfachIrgendwer0815
3b71837174
Merge branch 'master' into fix/2731_plain_override
2024-10-30 13:06:13 +01:00
einfachIrgendwer0815
fd6c7637e4
Partially revert "Make -pp override --paging and vice versa when passed as a later argument. ( #2660 )"
...
This partially reverts commit e2bf85e749 .
2024-10-18 11:46:51 +02:00
Tau Gärtli
89ce060183
Update help, man page and completions
2024-08-18 20:32:59 +02:00
Tau Gärtli
bc42149a72
Merge color scheme options into theme / BAT_THEME
2024-08-18 14:59:14 +02:00
einfachIrgendwer0815
7f089ead62
Add option --binary
...
`--binary` allows to specify how to deal with binary content. Current
options are not printing anything or treating the binary data as text.
2024-08-18 10:05:37 +02:00
Tau Gärtli
b9b981f657
Generalize --detect-color-scheme to --color-scheme
2024-08-16 14:14:30 +02:00
Tau Gärtli
cea45e05f3
Expose new theme selection in CLI
2024-08-16 14:12:22 +02:00
Ethan P.
6e91ba83b7
Update clap/docs for merging --style arguments
2024-07-30 21:21:55 -07:00
Ethan P.
b74c125c43
Support merging --style arguments
...
The `overrides_with` clap builder option was removed
because it interfered with the matcher's ability to
retain all occurrences of `--style`.
The behavior it covered is expressed within the new
`forced_style_components` function.
2024-07-30 21:21:53 -07:00
Ethan P.
9e8176b1c6
Add --strip-ansi=auto option
...
When using `auto`, escape sequences will be stripped unless printing
plain text.
2024-06-17 18:27:33 -07:00
Ethan P.
70ff93d238
Add --strip-ansi option
2024-06-16 16:49:07 -07:00
Lena
4c85483486
Inline format! args wherever possible
2024-02-25 00:38:11 +01:00
einfachIrgendwer0815
83b00bc653
Rename --squeeze to --squeeze-blank
2024-02-24 14:02:27 +01:00
einfachIrgendwer0815
f041ff8c5f
Hide --squeeze-limit from short help
2024-02-24 13:57:44 +01:00
Ethan P
0e4e10edb6
Add --squeeze-limit to specify max number of consecutive empty lines
...
Co-authored-by: einfachIrgendwer0815 <85333734+einfachIrgendwer0815@users.noreply.github.com >
2024-02-24 13:51:06 +01:00
Ethan P
c36ed32816
Add --squeeze/-s option
...
Co-authored-by: einfachIrgendwer0815 <85333734+einfachIrgendwer0815@users.noreply.github.com >
2024-02-24 13:51:00 +01:00
David Peter
3ffa3648cf
Merge pull request #2853 from einfachIrgendwer0815/document_default_style_components
...
Document default style components
2024-02-23 21:51:55 +01:00
einfachIrgendwer0815
875046e4cd
Mention which style components are the default
2024-02-11 10:06:01 +01:00
Oliver looney
7ce010d9ed
Using hypens instead of underscores for set-terminal-title command
2024-02-08 21:33:03 +00:00
Oliver looney
7f12989127
added set_terminal_title arg to clap_app.rs to fix ci errors
2024-01-29 09:47:41 +00:00
Oliver looney
60e32cf823
removed set_terminal_title arg from clap_app.rs since other boolean args aren't in clap_app.rs
2024-01-27 14:46:13 +00:00
Oliver looney
9239b125b1
added a flag to config for setting terminal title
2024-01-27 14:14:40 +00:00
Lena
28990bc451
fix: display color when NO_COLOR is an empty string ( #2767 )
2023-12-02 11:43:55 +00:00
J-Kappes
e2bf85e749
Make -pp override --paging and vice versa when passed as a later argument. ( #2660 )
2023-09-14 05:45:46 +02:00
Anomalocaridid
b56021ffa9
make LESSOPEN support opt-in
2023-09-08 06:25:20 +02:00
Anomalocaridid
e32ad0b048
Add $LESSOPEN and $LESSCLOSE support ( #2444 )
2023-09-02 08:48:26 +02:00
einfachIrgendwer0815
26111950b3
Add environment variable BAT_PAGING
2023-09-01 17:59:41 +02:00
David Peter
231ad86f04
Merge pull request #2502 from Enselic/clippy-1.68
...
Fix clippy warnings with Rust 1.68
2023-03-15 08:36:28 +01:00
einfachIrgendwer0815
8f99a78cf1
Print non-printable characters using caret notation ( #2443 )
...
When the new flag is set, non-printable characters are printed using caret notation.
2023-03-14 22:21:30 +01:00
Martin Nordholts
40a423905a
Fix clippy warnings with Rust 1.68
2023-03-14 21:19:14 +01:00
David Peter
a65b0828ee
Merge remote-tracking branch 'origin/master' into HEAD
2022-10-30 20:43:06 +01:00
David Peter
ccde13c9e8
Hide 'cache' subcommand, re-enable bold/underline styling, add note about cache subcommand
2022-10-30 20:26:06 +01:00
John Higgins
ff71303349
Update src/bin/bat/clap_app.rs for PR 2309
...
Co-authored-by: Martin Nordholts <enselic@gmail.com >
2022-10-17 23:35:52 -07:00
John Higgins
236a2c5794
Fixed inverted logic on -S and --chop-long-lines
2022-10-13 23:52:15 -07:00
Gábor Lipták
1e0b0f7c5c
Add github-actions to Dependabot
...
Signed-off-by: Gábor Lipták <gliptak@gmail.com >
2022-10-03 15:18:39 -05:00
John Higgins
a272d3df16
Added -S flag for truncating long lines
2022-09-09 17:04:09 -07:00
Ed Page
08c91a116c
refactor: Parse, don't validate
2022-09-03 14:01:56 +02:00
Ed Page
3d398b35c3
refactor: Switch from is_present to actions
...
Because "diff" is conditionally present, we need to check for it to
avoid some of clap's stricter checks meant to prevent bugs.
2022-09-03 14:01:56 +02:00
Ed Page
50bb924ee3
refactor: Replace multiple_occurrences
2022-09-03 14:01:56 +02:00
Ed Page
e8e1c1d6c9
refactor: Replace allow_invalid_utf8 with PathBuf
2022-09-03 14:01:56 +02:00
Ed Page
542b3d2317
refactor: Resolve basic clap deprecations
2022-09-03 14:01:56 +02:00
Ed Page
2323804f7e
refactor: Port to clap3
...
Ths does remove the specialization of version's description. The way
this is done (internally through `mut_arg`) doesn't play well with
subcommands. Clap tries to force this version of `version` into the
subcommand despite not being needed. Clap v4 dramatically changes how
version customization works.
clap also does more error checks now to prevent programmer mistake, so
we can't have a conflict with an argument that is conditionally there,
so I swapped the condition.
2022-09-03 14:01:56 +02:00
Marie Katrine Ekeberg
9c7ca33929
Make --no-paging/-P override --paging=... if passed as a later arg ( #2201 )
...
* Make the no-paging option override earlier paging options
* Update CHANGELOG.md
Co-authored-by: Martin Nordholts <enselic@gmail.com >
2022-08-14 21:09:13 +02:00
Anders Kaseorg
4583826a5b
Fix documentation typo: --pager=never → --paging=never
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2022-07-07 06:09:11 +02:00
Isaac Horvath
adea895026
Add a --style=default option ( #2119 )
...
* Add a --style=default option
* Added --style=default test and CHANGELOG entry
* Format CHANGELOG.md options with quotes
Co-authored-by: Martin Nordholts <enselic@gmail.com >
* Update help text for '--style'
* Make --style=default the default option
* Update style descriptions: "basic" -> "recommended"
* Add integration test for --style=default as default
* Update clap long help for --style
2022-05-04 21:31:32 +02:00
Mahdi Dibaiee
312c8ef01f
Add new --style called header-filesize and display it by default ( #1988 )
...
Also rename `header` to `header-filename`.
Related to #1701
2022-02-07 20:48:57 +01:00
Martin Nordholts
5b37438f08
bat --help: Put --ignored-suffix directly after --map-syntax
...
It feels out of place to have between `--acknowledgements` and `--help`.
2022-01-08 17:01:20 +01:00
Martin Nordholts
a3ea798246
Credit syntax definition and theme authors with new --acknowledgements option ( #1971 )
...
The text that is printed is generated when building assets, by analyzing LICENSE
and NOTICE files that comes with syntaxes and themes.
We take this opportunity to also add a NOTICE file as defined by Apache License 2.0.
2021-12-11 14:00:45 +01:00