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
Keith Hall
961f367ca8
use newer MacOS runner images
...
otherwise CI fails due to the brownout https://github.com/actions/runner-images/issues/13046
2025-11-26 22:07:06 +02:00
Keith Hall
8bf3be5e61
Revert "Patch Dockerfile to replace reference to non-existent context"
...
This reverts commit a4212e99b0 .
No longer needed because we reverted the Docker submodule.
2025-11-25 22:43:58 +02:00
Keith Hall
f8b6a009cb
commit syntax dump to get integration tests to pass
2025-11-24 22:30:34 +02:00
Keith Hall
efa9f0e63d
add integration test to prove that building the cache finds all contexts
2025-11-24 22:20:44 +02:00
Keith Hall
a4212e99b0
Patch Dockerfile to replace reference to non-existent context
2025-11-24 22:05:31 +02:00
Keith Hall
6884a8e7e0
Update changelog
2025-11-24 21:56:05 +02:00
Keith Hall
a1b1feb247
Revert "Bump assets/syntaxes/02_Extra/Docker from 0f6b7bc to c001fb2 ( #3024 )"
...
This reverts commit 3838766dd4 .
2025-11-24 21:56:05 +02:00
Keith Hall
1e4a4b765f
Merge pull request #3457 from abhinavcool42/fix/list-themes-pager-hang
...
fix: `--list-themes` pagination
2025-11-15 15:49:40 +02:00
Keith Hall
cfe49779fa
Merge branch 'master' into fix/list-themes-pager-hang
2025-11-15 15:41:07 +02:00
Keith Hall
c51cff8961
Merge pull request #3481 from AldanTanneo/master
...
update Ada syntax gitmodule
2025-11-14 19:46:22 +02:00
Keith Hall
3217a7e667
Merge pull request #3484 from cyqsimon/quadlet-update
...
Update quadlet syntax mapping to include `*.{build,pod}` files
2025-11-13 19:15:28 +02:00
Keith Hall
7c3fa7e1ce
Merge pull request #3448 from akinomyoga/bash-fullquote
...
Use `-o fullquote` and `-o noquote` for more robust escaping in Bash completions
2025-10-20 19:55:56 +03:00
Keith Hall
006d77fa39
Merge pull request #3442 from lmmx/patch-1
...
fix: allow hyphen values to `-r`/`--line-range`
2025-10-19 23:44:25 +03:00
Keith Hall
20db989fb1
Merge pull request #3441 from sharkdp/prepare_changelog
...
Prepare changelog for future changes
2025-10-19 21:40:50 +03:00
Keith Hall
2c63d3c792
Prepare changelog for future changes
2025-10-19 21:24:54 +03:00
Keith Hall
c734087e1d
Merge pull request #3440 from sharkdp/prepare_release
...
Prepare to release v0.26.0
2025-10-19 21:20:43 +03:00
Keith Hall
3331a306c9
Prepare to release v0.26.0
2025-10-19 21:06:26 +03:00
Keith Hall
83ffd1ea09
Merge pull request #3438 from lmmx/pipe-style
...
feat: make output pipeable with `-n`, non-auto styles
2025-10-18 20:43:57 +03:00
Keith Hall
a730eaae0a
Merge pull request #3435 from MuntasirSZN/fix/markdown-typescript
...
feat: add typescript codeblock highlight patches for markdown
2025-10-14 22:22:33 +03:00
Keith Hall
8920c738c5
chore: update highlighted test Markdown with embedded Typescript file
2025-10-14 22:02:16 +03:00
Keith Hall
e6a1d40f8d
Merge pull request #3410 from sharkdp/bump_syntect
...
Bump syntect to v5.3.0
2025-10-09 22:00:25 +03:00
Keith Hall
d3cf75a36e
Update changelog
2025-10-09 21:50:58 +03:00
Keith Hall
8221554865
Bump MSRV to get syntect to compile
...
https://releases.rs/docs/1.79.0/
> Propagate temporary lifetime extension into if and match expressions.
1.79 was released on: 13 June, 2024
2025-10-09 21:50:58 +03:00
Keith Hall
a2eaa6c22c
Bump syntect to v5.3.0
2025-10-09 21:50:58 +03:00
Keith Hall
01b7ac62c5
Merge pull request #3413 from sharkdp/ansi_theme_json
...
Update ansi theme to highlight JSON keys separately from string values
2025-10-08 23:31:42 +03:00
Keith Hall
aa1c4fb48f
update themes.bin to see if integration tests will pass
2025-10-08 23:22:06 +03:00
Keith Hall
c0389b0e5c
add integration test for ANSI theme with simple JSON
2025-10-08 23:12:39 +03:00
Keith Hall
3e816f08c7
Update ansi theme to highlight JSON keys separately from string values
2025-10-08 23:12:39 +03:00
Keith Hall
6c8929128f
Merge pull request #3414 from sharkdp/ignore_invalid_config_for_help_and_version
...
Fix help/version/diagnostic commands with invalid config
2025-10-08 22:58:05 +03:00
Keith Hall
98b75db115
Update changelog
2025-10-08 22:46:08 +03: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
Keith Hall
0e931aadde
Merge pull request #3411 from sharkdp/completions
...
Add missing shell completions for various CLI arguments
2025-10-07 22:42:31 +03:00
Keith Hall
8e90efb2b4
Add missing shell completions for various CLI arguments
2025-10-07 22:30:53 +03:00
Keith Hall
da23939561
Merge pull request #3412 from sharkdp/dmesg_syntax_mapping
...
Map /var/log/dmesg to Syslog syntax
2025-10-07 20:24:34 +03:00
Keith Hall
d478ba2923
Merge branch 'master' into dmesg_syntax_mapping
2025-10-07 20:12:34 +03:00
Keith Hall
3ae23cc57b
Merge pull request #3424 from DarkMatter-999/feat/add-gomod-support
...
Add go.mod and go.sum Syntax Support
2025-10-04 00:18:07 +03:00
Keith Hall
839bfded39
Map /var/log/dmesg to Syslog syntax
2025-09-27 22:48:13 +03:00
Keith Hall
2c87b9480f
Bump jsonnet syntax dependency
2025-09-27 16:41:05 +03:00
Keith Hall
2ae4253577
Merge pull request #3397 from sharkdp/dependabot/submodules/assets/syntaxes/02_Extra/VimL-fe5bf5e
...
build(deps): bump assets/syntaxes/02_Extra/VimL from `ee85822` to `fe5bf5e`
2025-09-27 16:12:39 +03:00
Keith Hall
9d003dd1b9
Merge pull request #3402 from academician/minus-integration
...
Add --pager=builtin using the Minus library
2025-09-20 08:43:47 +03:00
Keith Hall
929669728c
Merge pull request #3396 from sharkdp/dependabot/submodules/assets/syntaxes/02_Extra/CMake-2560a08
...
build(deps): bump assets/syntaxes/02_Extra/CMake from `eb40ede` to `2560a08`
2025-09-04 09:34:27 +03:00
Keith Hall
93b020bf93
Merge pull request #3400 from CosmicHorrorDev/upd-onig-sys
...
build(deps): bump onig_sys 69.8.1 to 69.9.1
2025-09-04 09:20:23 +03:00
Keith Hall
297e8280d9
Merge pull request #3376 from eric-menne/fix/ctrl-c_fails_in_powershell
...
Fix ctrl-c fails in powershell
2025-08-22 17:59:35 +03:00
Keith Hall
c9b41b1df7
Merge pull request #3381 from CalebLarsen/update-docs
...
docs: added minor theming documentation notes
2025-08-22 07:12:17 +03:00
Keith Hall
6a74283289
Merge pull request #3382 from CosmicHorrorDev/update-github-theme
...
deps: Bump assets/themes/github-sublime-theme from `508740b` to `59e525f`
2025-08-20 08:04:30 +03:00
Keith Hall
1c6ad4d514
Merge pull request #3345 from cavanaug/master
...
Support context in line ranges
2025-08-20 06:43:36 +03:00
Keith Hall
9824090654
Merge pull request #3369 from forkeith/utf16le
...
Fix the read_line method for utf16le/be input
2025-08-16 15:49:16 +03:00
Keith Hall
bdaf25793d
cargo fmt
2025-08-16 15:36:45 +03:00
Keith Hall
96ce80d0e2
Apply same fix and tests for UTF16BE
2025-08-16 15:36:45 +03:00
Keith Hall
40c4c8e542
More thorough tests for UTF16LE
2025-08-16 15:35:57 +03:00
Keith Hall
6675153460
Fix the read_line method for utf16le input
...
to determine the end of the line, instead of reading until \n (0x0A) and then reading until 0x00 and calling it done, read until we find 0x00 preceded by 0x0A.
2025-08-16 15:35:57 +03:00
Keith Hall
6d849e53d2
Merge pull request #3373 from wcampbell0x2a/add-name-to-x86-asm-sublime-syntax
...
Add x86_64 Assembly to x86 sublime syntax file
2025-08-13 09:44:13 +03:00
Keith Hall
7fc3d6b588
Update assets/syntaxes/02_Extra/Assembly (x86_64).sublime-syntax
2025-08-13 09:34:59 +03:00
Keith Hall
60833ae5ec
Merge pull request #3372 from Nicholas42/master
...
update gruvbox theme
2025-08-10 19:12:53 +03:00
Keith Hall
d9cc01b50c
Merge pull request #3370 from qianbinbin/fix/manpager
...
Make MANPAGER more portable
2025-08-10 06:17:17 +03:00