Keith Hall
7fcab0616a
Merge pull request #3700 from optimistiCli/list-themes-term-probe-fix
...
Fixed hardcoded terminal probing when `--list-themes` is called
2026-04-30 18:09:32 +03:00
Keith Hall
e157ac911b
Merge branch 'master' into list-themes-term-probe-fix
2026-04-30 17:58:24 +03:00
Keith Hall
b29e1d55c4
Merge pull request #3709 from mvanhorn/osc/3228-readme-style-list
...
docs(README): list available --style components in Output style section
2026-04-30 14:15:25 +03:00
Keith Hall
12ee94f530
Merge branch 'master' into list-themes-term-probe-fix
2026-04-30 14:13:47 +03:00
Keith Hall
8fbc96a5f2
Merge pull request #3654 from cuiweixie/fix/lessclose-nonzero-warning
...
fix: correct $LESSCLOSE exit-status warning
2026-04-30 08:19:42 +03:00
Keith Hall
54bfc33248
Merge branch 'master' into fix/lessclose-nonzero-warning
2026-04-30 08:10:40 +03:00
Keith Hall
91aac95db2
Merge pull request #3691 from curious-rabbit/master
...
sanitize filenames
2026-04-28 23:24:00 +03:00
Keith Hall
5977245a23
Merge branch 'master' into fix/lessclose-nonzero-warning
2026-04-28 19:24:00 +03:00
Keith Hall
3f98e6f10f
Merge branch 'master' into master
2026-04-28 19:22:51 +03:00
Keith Hall
78cb14af05
Merge pull request #3699 from guille/master
...
Improve Kotlin syntax
2026-04-27 22:26:10 +03:00
Keith Hall
8c8ed90d6d
Merge branch 'master' into master
2026-04-27 22:20:33 +03:00
Keith Hall
8cadefb5cb
Merge pull request #3706 from lawrence3699/fix/initial-read-errors
...
Propagate initial input read errors
2026-04-27 21:46:10 +03:00
Keith Hall
de2f21562a
Merge pull request #3704 from sharkdp/fix/zsh-completion-language-word-split
...
Fix/zsh completion language word split
2026-04-27 06:07:37 +03:00
Keith Hall
93c52a4f88
Merge pull request #3692 from barry3406/fix/remove-crt-windows
...
windows: statically link the CRT to remove vcruntime dependency
2026-04-20 05:09:54 +03:00
Keith Hall
e782ec125c
Merge pull request #3647 from mvanhorn/osc/3513-tcl-shebang
...
feat: add tclsh, wish, and expect shebang detection for Tcl syntax
2026-04-19 05:52:52 +03:00
Keith Hall
f822bd05ce
Merge pull request #3689 from janlarres/python-uv
...
[Python] Support uv as script runner in shebang
2026-04-13 20:28:02 +03:00
Keith Hall
a36b02d90f
Merge pull request #3688 from orbisai0security/fix-fix-shell-injection-subprocess-call
...
fix: sanitize subprocess call in generate_snapshots.py
2026-04-12 16:04:47 +03:00
Keith Hall
33045c3558
Merge pull request #3687 from officialasishkumar/support-bat-width-env
...
Support BAT_WIDTH for terminal width
2026-04-12 04:59:03 +03:00
Keith Hall
a995764d23
Merge pull request #3686 from officialasishkumar/fix-zip-binary-detection
...
Detect ZIP archives as binary content
2026-04-10 20:30:27 +03:00
Keith Hall
111aa2e10e
Merge pull request #3682 from ltrzesniewski/slnx
...
Add .NET `slnx` extension
2026-04-08 05:20:55 +03:00
Keith Hall
11efacbe64
Merge pull request #3661 from sharkdp/diagnostic_themes
...
Update --diagnostic output with BAT_THEME_LIGHT/DARK env vars and detected theme type
2026-04-02 21:44:28 +03:00
Keith Hall
204ca18d71
Merge branch 'master' into diagnostic_themes
2026-04-02 21:36:24 +03:00
Keith Hall
3e4169b8c3
cargo fmt
2026-03-31 22:35:21 +03:00
Keith Hall
ba223289ce
Update --diagnostic output with detected terminal color scheme type
2026-03-31 22:23:10 +03:00
Keith Hall
abab6533e4
Update --diagnostic output with BAT_THEME_LIGHT/DARK env vars
2026-03-31 22:22:31 +03:00
Keith Hall
7d9884d6d2
Merge pull request #3655 from claw-explorer/docs/fish-abbr-removal
...
docs: add instructions for removing fish help abbreviations
2026-03-28 22:44:07 +02:00
Keith Hall
3ee9ea9a8d
Merge pull request #3652 from cyqsimon/syntax-mapping-glob-parse-cleanup
...
Builtin syntax mapping: cleanup matcher glob parsing logic
2026-03-25 22:01:52 +02:00
Keith Hall
a500fb236a
Merge pull request #3650 from Sim-hu/fix/i686-deb-architecture
...
fix: use correct Debian architecture name for i686 .deb
2026-03-24 22:37:48 +02:00
Keith Hall
515b9d62db
Merge branch 'master' into fix/i686-deb-architecture
2026-03-24 22:23:29 +02:00
Keith Hall
62907b1da5
Merge pull request #3651 from sharkdp/minus_home_end_keys
...
Add Home/End key bindings to builtin minus pager
2026-03-24 22:22:53 +02:00
Keith Hall
eef7107407
update changelog
2026-03-24 21:38:07 +02:00
Keith Hall
780fdeb888
Merge pull request #3576 from vorburger/patch-2
...
feat: Map BUILD to Python (Starlark) for Bazel (fixes #3575 )
2026-03-22 20:14:05 +02:00
Keith Hall
7a9c6e0de5
Merge branch 'master' into patch-2
2026-03-22 17:47:24 +02:00
Keith Hall
a1e7c0ab4a
Merge pull request #3643 from mvanhorn/feat/diff-plain-compatibility
...
feat: preserve change markers when combining --diff with --plain
2026-03-21 16:30:43 +02:00
Keith Hall
1e36873704
Merge branch 'master' into feat/diff-plain-compatibility
2026-03-21 16:21:56 +02:00
Keith Hall
66eece4e2c
Merge branch 'master' into patch-2
2026-03-20 23:57:19 +02:00
Keith Hall
a19593b383
improvements from PR review
...
1. Added `Deserialize` derive and `#[serde(try_from = "RawMatcher")]` to the `Matcher` struct. With `try_from`, serde generates a `Deserialize` impl that first deserializes into `RawMatcher`, then calls `TryFrom<RawMatcher> for Matcher`. It never attempts to deserialize `Matcher`'s fields directly, so `Case` and `MatcherSegment` don't need `Deserialize` impls.
2. Replaced the manual `impl<'de> serde::Deserialize<'de> for Matcher` with a standard `impl TryFrom<RawMatcher> for Matcher`. The logic is identical - the conversion is fallible because `Matcher::from_str` returns `Result<_, anyhow::Error>`, so `try_from` (not `from`) is the correct choice, avoiding any panics.
The net effect: same behavior, same error handling, but using the idiomatic serde pattern instead of a manual deserializer impl. The `RawMatcher` intermediate type and its `#[serde(untagged)]` derive remain unchanged.
2026-03-20 23:53:30 +02:00
Keith Hall
7a6f442c86
improvements from PR review
...
- prefer to use `Default::default` because it's semantically clearer why we've chosen to use a particular value
2026-03-20 23:35:27 +02:00
Keith Hall
3767f15c2a
improvements from PR review
...
fix documentation about syntax mappings
2026-03-20 23:34:38 +02:00
Keith Hall
1932d1da39
Merge pull request #3642 from mvanhorn/fix/deb-musl-package-names
...
fix: consistent .deb MUSL package names
2026-03-20 22:57:41 +02:00
Keith Hall
b0e5590864
Merge branch 'master' into fix/deb-musl-package-names
2026-03-20 22:42:24 +02:00
Keith Hall
f2daa1eb6e
Merge pull request #3640 from eyupcanakman/fix/binary-as-text-width-3631
...
Fix line wrapping for files with control characters
2026-03-20 22:40:28 +02:00
Keith Hall
4a38eab3ea
Merge pull request #3628 from XploitMonk0x01/codex/clarify-bat-vs-batcat
...
docs: clarify Ubuntu and Debian executable name
2026-03-19 23:00:59 +02:00
Keith Hall
c6e661d80b
cargo fmt
2026-03-18 22:25:07 +02:00
Keith Hall
031ba0953a
Merge branch 'master' into patch-2
2026-03-18 22:17:18 +02:00
Keith Hall
31e30a2e97
Merge pull request #3636 from victor-gp/add-mapping-for-ignore-files
...
Add mapping for ignore files
2026-03-18 22:08:02 +02:00
Keith Hall
f11374535d
Merge pull request #3629 from Rohan5commit/docs/fix-readme-wording
...
docs: fix README sidebar wording
2026-03-18 20:37:04 +02:00
Keith Hall
22c38b6fcb
Merge remote-tracking branch 'origin/master' into patch-2
2026-03-18 05:19:21 +02:00
Keith Hall
63d5796f8f
Merge pull request #3635 from victor-gp/add-mappings-for-gcloud-cli
...
Add syntax mappings for GCloud CLI config files
2026-03-17 22:45:12 +02:00
Keith Hall
884765bdeb
Merge remote-tracking branch 'origin/master' into patch-2
2026-03-14 09:21:19 +02:00
Keith Hall
56fe0fa226
Add case-sensitive glob support to syntax mapping
...
to allow us to map `BUILD` case sensitively to Python for Skylark
2026-03-14 09:18:56 +02:00
Keith Hall
d9adfe90fc
Merge pull request #3627 from XploitMonk0x01/codex/clarify-theme-format
...
docs: clarify supported custom theme format
2026-03-14 09:08:30 +02:00
Keith Hall
23abbdcea9
Merge pull request #3584 from adukhan99/add-cobol-syntax
...
Add COBOL syntax highlighting
2026-03-11 18:51:14 +02:00
Keith Hall
0dcdcb678a
Merge pull request #3621 from Xavrir/fix-symlink-syntax-detection
...
Fix syntax highlighting for symlinked files by resolving target path
2026-03-08 20:01:25 +02:00
Keith Hall
fc4f12b390
Merge pull request #3620 from Xavrir/fix-bat-config-dir-duplicate
...
Fix BAT_CONFIG_DIR pointing at system config directory causing duplicate flag errors
2026-03-08 08:23:14 +02:00
Keith Hall
1424f9d6bf
Merge pull request #3609 from Nicolas0315/fix/builtin-pager-drop-panic
...
Fix panic in BuiltinPager Drop when pager thread fails (#3449 )
2026-03-02 04:57:37 +02:00
Keith Hall
7d7e202bd5
Merge pull request #3588 from IMaloney/fix/warn-missing-pager
...
warn when pager is missing instead of silently falling back
2026-02-20 20:46:38 +02:00
Keith Hall
74de075748
Merge branch 'master' into fix/warn-missing-pager
2026-02-20 20:37:07 +02:00
Keith Hall
594069581d
Merge pull request #3592 from IMaloney/fix/wrap-never-clean
...
respect --wrap=never flag when piping to pager
2026-02-20 20:26:23 +02:00
Keith Hall
fbc05da785
Merge pull request #3586 from BlueElectivire/master
...
Fixed manpage syntax to remove ANSI artifacts
2026-02-19 18:56:14 +02:00
Keith Hall
990b2fc06f
Merge pull request #3583 from mainnebula/steward/sharkdp-bat-3555-2de8ac3c
...
feat: implement --unbuffered mode for streaming input
2026-02-12 08:40:44 +02:00
Keith Hall
391e7ff072
Merge pull request #3581 from NORMAL-EX/chore/update-time-crate
...
chore(deps): update time crate to 0.3.47 (RUSTSEC-2026-0009)
2026-02-07 13:37:17 +02:00
Keith Hall
3df9d581b7
Merge pull request #3527 from Anchal-T/master
...
Fix bat crash with BusyBox less on Windows
2026-02-03 22:40:04 +02:00
Keith Hall
eb724f2dc4
Merge branch 'master' into master
2026-02-03 22:27:30 +02:00
Keith Hall
c491488140
Merge pull request #3578 from vorburger/nix
...
Add initial flake.nix; just for develop, for now (fixes#3577)
2026-02-03 22:25:49 +02:00
Keith Hall
8664cc9df9
Merge pull request #3563 from NORMAL-EX/feat/quiet-empty
...
feat: add --quiet-empty flag to suppress output on empty input
2026-02-01 11:15:45 +02:00
Keith Hall
885ae1dc81
Merge pull request #3561 from cerdelen/small_typo_fix
...
Small typo fixes
2026-01-28 22:03:09 +02:00
Keith Hall
cd06fe46e0
Merge pull request #3552 from CosmicHorrorDev/remove-vs-dark+
...
Remove Visual Studio Dark+ theme
2026-01-15 22:13:41 +02:00
Keith Hall
981f25989a
Merge pull request #3550 from nmacl/master
...
Use cargo_bin! macro to fix tests for future Cargo versions
2026-01-10 13:53:09 +02:00
Keith Hall
32047346e3
Merge pull request #3534 from ltrzesniewski/windows-clone
...
Make the repository clone correctly under Windows
2025-12-28 08:02:56 +02:00
Keith Hall
41f55bf902
Merge pull request #3535 from ltrzesniewski/windows-build
...
Fix integration tests on Windows
2025-12-28 07:46:13 +02:00
Keith Hall
9bf344f760
Merge pull request #3517 from akirk/strip-overstriking
...
Improve native man pages and command help syntax highlighting by stripping overstriking
2025-12-11 08:36:18 +02:00
Keith Hall
eb2a8e29c7
Merge pull request #3524 from sharkdp/help_custom_assets
...
Support custom assets (themes) when displaying help output
2025-12-10 22:39:51 +02:00
Keith Hall
b7dd88eafd
Support custom assets (themes) when displaying help output
2025-12-10 22:30:01 +02:00
Keith Hall
79fe5fea63
Merge pull request #3521 from sharkdp/rainbow_csv_strings
...
[CSV] don't apply string highlighting by default
2025-12-08 20:08:04 +02:00
Keith Hall
d15e399fce
[CSV] don't apply string highlighting by default
2025-12-07 21:55:05 +02:00
Keith Hall
4d188e45fe
Merge pull request #3519 from sorairolake/change-zig-url
...
chore: Change URL of Zig submodule from GitHub to Codeberg
2025-12-06 13:18:58 +02:00
Keith Hall
566595f0eb
Merge pull request #3516 from sharkdp/fix_help_builtin_pager
...
Fix --help --pager=builtin
2025-12-05 22:22:22 +02:00
Keith Hall
1796324531
Fix --help --pager=builtin
...
Previously it still used less
2025-12-04 21:53:45 +02:00
Keith Hall
7e7ab8a860
Merge pull request #3511 from sharkdp/prepare_changelog
...
add empty changelog sections ready for future changes
2025-12-03 22:48:16 +02:00
Keith Hall
c054541776
add empty changelog sections ready for future changes
2025-12-03 22:37:26 +02:00
Keith Hall
979ba22628
Merge pull request #3510 from sharkdp/prepare_release
...
Prepare for next release
2025-12-02 22:44:14 +02:00
Keith Hall
19ab724a73
Prepare for next release
2025-12-02 22:33:02 +02:00
Keith Hall
def49e19a7
Merge pull request #3509 from sharkdp/ksh
...
Add syntax detection for files with ksh shebang lines
2025-12-02 22:15:48 +02:00
Keith Hall
1fb269a0fb
Add syntax detection for files with ksh shebang lines
2025-12-02 22:06:21 +02:00
Keith Hall
0e469634a3
return None for get_pager_executable when builtin pager is used ( #3498 )
2025-12-01 20:02:55 +00:00
Keith Hall
6dfe471686
Merge pull request #3507 from sharkdp/help_read_theme_from_config
...
Ensure --help respects valid config file
2025-12-01 21:36:58 +02:00
Keith Hall
2c7fc5f926
update changelog
2025-12-01 06:51:04 +02:00
Keith Hall
579d371378
Ensure --help respects valid config file
...
While still ignoring ignoring invalid arguments in the config
2025-12-01 05:30:05 +02:00
Keith Hall
e7006b53e3
Merge pull request #3497 from xduugu/quadlet
...
Add syntax mapping for podman's `artifact` quadlet files
2025-11-30 14:26:53 +02:00
Keith Hall
1ffed0c039
Merge pull request #3496 from sharkdp/decorations_auto
...
Restore expected behavior when piping output with styles configured and auto decorations
2025-11-30 05:14:01 +02:00
Keith Hall
602df893de
Add additional test cases for -n in loop through mode
2025-11-30 05:02:13 +02:00
Keith Hall
3755f788ca
Improve -n detection to handle combined flags correctly
...
Updated the logic to correctly handle combined short flags like -pn and -np.
The -n flag is only honored when it's either:
1. A standalone flag (-n or --number)
2. The last flag in a combined form that includes -p (e.g., -pn), or
3. In a combined form without -p (e.g., -An)
This ensures that -np (where -p overrides -n) correctly produces plain output,
while -pn (where -n overrides -p) produces line numbers.
2025-11-30 05:02:13 +02:00
Keith Hall
abc7261488
Fix -n flag to show line numbers in loop-through mode
...
When the -n/--number flag is passed on the command line, bat now shows
line numbers even when piping output to another process (loop-through
mode), similar to how `cat -n` behaves.
This change detects if -n or --number was passed on the CLI (before
merging with config file and environment variables) and disables
loop-through mode in that case, allowing the InteractivePrinter to
add line numbers.
The existing behavior is preserved:
- Styles from config/env are still ignored when piping (unless --decorations=always is set)
- Only the -n flag from CLI enables line numbers in piped mode
- -p and --style options from CLI do not disable loop-through mode
2025-11-30 05:02:13 +02:00
Keith Hall
f9c33971d9
Update readme to mention decorations
2025-11-30 05:02:13 +02:00
Keith Hall
7d37325c19
Fix to not show style decorations in auto mode when piping
2025-11-30 05:02:13 +02:00
Keith Hall
d17481575a
Merge pull request #3495 from sharkdp/powershell_completions
...
Update PowerShell completions for compatibility with PowerShell v5.1
2025-11-28 22:49:44 +02:00
Keith Hall
1ee1d8fdff
update changelog
2025-11-27 21:57:47 +02:00
Keith Hall
af8f0626ac
Update PowerShell completions for compatibility with PowerShell v5.1
...
Modified the PowerShell completion script to replace the null-coalescing operator (`??` - a v7 feature) with a conditional statement compatible with PowerShell v5.1. The script now uses an if-else check for null descriptions in the language completion section.
2025-11-27 21:50:17 +02:00
Keith Hall
c88353b386
Merge pull request #3476 from sharkdp/docker_syntax_fix
...
Revert "Bump assets/syntaxes/02_Extra/Docker from `0f6b7bc` to `c001fb2` (#3024 )"
2025-11-26 22:19:06 +02:00