Louis Maddox
200924772f
docs: amend man page (style modifies cat-like piping)
2025-10-18 10:29:39 +01:00
Louis Maddox
7eedc0f854
feat(pipe-style): make output pipeable (any style)
2025-10-18 10:29:39 +01:00
Keith Hall
2badaf5d99
cargo fmt
2025-10-08 22:45:50 +03:00
Keith Hall
588ff32d18
Fix help/version/diagnostic commands with invalid config
2025-10-08 22:45:50 +03:00
Academician
c29f1875d3
Add --builtin=pager to readme, completions, and man pages
2025-09-09 16:26:49 -04:00
Daniel Waechter
a470cebf32
Add a "builtin" pager using the Minus crate
2025-09-09 16:15:54 -04:00
John Cavanaugh
36d25c8642
Merge branch 'master' into master
2025-08-19 20:34:08 -07:00
Yuri Astrakhan
503c50b1ec
chore: address all cargo clippy lints
...
* also do a bit of a doc cleanup for the `load_from_folder` fn
2025-08-19 05:22:47 +02:00
Yuri Astrakhan
d9fbd18541
inline format arguments
...
In a few cases, removed the unneeded `&` - this causes a minor slowdown because compiler cannot eliminate those (yet).
2025-08-19 05:07:54 +02:00
John Cavanaugh
6c13a98f01
feat: ✨ add context support to line-range syntax
...
docs(long-help.txt): 📚 add examples for N::C and N:M:C context syntax
docs(clap_app.rs): 📚 update CLI help text with context syntax examples
feat(line_range.rs): ✨ implement N::C and N:M:C parsing and add tests
2025-07-15 16:17:09 -07:00
cyqsimon
555933315d
Only start offload worker thread when there's more than 1 core ( #2956 )
...
* Only start offload worker thread when there's more than 1 core
* Write changelog
2025-07-15 05:21:00 +02:00
einfachIrgendwer0815
12a2a451b4
Add paging to --list-themes
2025-04-02 11:27:37 +02:00
einfachIrgendwer0815
cc46282866
Fix clippy::into_iter_on_ref warnings
2025-02-02 15:08:13 +01:00
einfachIrgendwer0815
4f161705a3
Fix: Don't output default theme info to piped stdout
2025-01-27 17:11:26 +01:00
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
8d82402d74
Merge branch 'master' into feature/binary_as_text
2024-10-30 12:46:11 +01:00
einfachIrgendwer0815
c9fd0f3cf0
Add partial override of -pp and --paging
2024-10-18 12:13:41 +02: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
60e4027332
Expose theme env vars
2024-09-07 21:36:02 +02:00
Tau Gärtli
16d9b99f6c
Flatten preference enum
2024-09-04 21:18:29 +02:00
einfachIrgendwer0815
0603f0b844
Don't output default theme info to piped stdout
2024-08-25 10:54:46 +02:00
Tau Gärtli
50958472e5
Return theme alongside detected color scheme
2024-08-23 18:03:07 +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
5c6974703e
Respect --detect-color-scheme flag when listing themes
2024-08-16 14:13:58 +02:00
Tau Gärtli
1b0a6da4be
Use new default_theme fn for --list-themes
2024-08-16 14:13:58 +02:00
Tau Gärtli
ff81cfd584
Move actual detection into library
2024-08-16 14:13:16 +02:00
Tau Gärtli
cea45e05f3
Expose new theme selection in CLI
2024-08-16 14:12:22 +02:00
Ethan P.
aa3ec109b7
First StyleComponentList should remove from 'auto' style.
...
This happens when there are no `--style` arguments other than the one
passed in as a command line argument.
Prior to this change, removing a style component (e.g. `--style=-numbers`)
would remove the component from an empty style component set, resulting
in no styles at all. That behaviour was less intuitive than the new
behaviour, which starts out with the default components and
removes the line numbers.
2024-07-30 21:22:02 -07:00
Ethan P.
93b25d75a0
Join env var options with "=" instead of " "
...
Joining them with a space was causing certain styles (e.g. `-grid`) to
be misinterpreted as a separate option.
2024-07-30 21:21:58 -07: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
Stéphane Blondon
bb4d1cbd2e
refactor: factorize constants by inverting loop and condition order
2024-04-19 11:44:47 +02:00
Stéphane Blondon
23ec433167
display which theme is the default one in basic output
2024-04-19 11:44:47 +02:00
sblondon
d5bd4aa93f
display which theme is the default one in colored output ( #2838 )
2024-04-14 15:54:52 +02:00
Rivera Calzadillas
f8c5429a6c
Print $TERM with --diagnostic
2024-04-07 14:24:16 +02:00
Rivera Calzadillas
f71226adbb
Sort env vars printed by --diagnostic
2024-04-07 14:24:16 +02:00
David Peter
f29f9387b5
Merge pull request #2868 from cyqsimon/builtin-offload-v2
...
Faster startup by offloading glob matcher building to a worker thread
2024-03-10 20:08:43 +01: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