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
Keith Hall
30b42149aa
Merge pull request #3200 from forkeith/add_missing_switches_to_manpage
...
Add missing command line switches to manpage
2025-08-08 06:35:31 +03:00
Keith Hall
c25e005c87
Add missing command line switches to manpage
...
- `--binary`
- `--completion`
- `--strip-ansi`
2025-08-08 06:21:41 +03:00
Keith Hall
c4d7451841
Merge pull request #3365 from deflektor/update/CompletionPwsh
...
Update ps1 completion
2025-08-08 06:19:29 +03:00
Keith Hall
b47338ec75
Merge pull request #3362 from qianbinbin/fix/batdiff
...
Make batdiff more portable
2025-08-08 05:51:24 +03:00
Keith Hall
4c2b20fedd
Merge pull request #3368 from forkeith/fix_missing_assets
...
Replace missing asset submodules
2025-08-07 22:55:30 +03:00
Keith Hall
9d3245eebe
Replace missing asset submodules
2025-08-07 22:45:22 +03:00
Keith Hall
369ea67ad3
Merge pull request #3359 from sharkdp/dependabot/submodules/assets/syntaxes/02_Extra/typst-syntax-highlight-4e2e68b
...
Bump assets/syntaxes/02_Extra/typst-syntax-highlight from `3f2561d` to `4e2e68b`
2025-08-01 06:23:46 +03:00
Keith Hall
4f0a3f5766
Merge pull request #3353 from Ferenc-/linux-ini-formats
...
Add syntax mapping for flatpakref
2025-07-31 20:26:08 +03:00
Keith Hall
847b717cdf
Merge pull request #3351 from musicinmybrain/console-0.16
...
Update console dependency from 0.15.10 to 0.16.0
2025-07-23 15:19:11 +03:00
Keith Hall
8bc4e76e47
Merge pull request #3347 from bash/terminal-colorsaurus-1.0
...
Update terminal-colorsaurus to 1.0
2025-07-22 21:19:24 +03:00
Keith Hall
872d0baafb
Merge pull request #3206 from sharkdp/make_map_syntax_case_insensitive
...
Make map-syntax target case insensitive
2025-07-17 22:31:54 +03:00
Keith Hall
f1d45da676
Merge pull request #3333 from SchweGELBin/catppuccin-update
...
Bump Catppuccin from 19c4453 to ccf194f
2025-07-11 20:41:39 +03:00
Keith Hall
735fb7be0e
Merge pull request #3322 from YDX-2147483647/lean
...
Update Lean.sublime-syntax from Lean 3 to Lean 4
2025-07-11 20:28:18 +03:00
Keith Hall
e888e968b6
Merge pull request #3340 from cyqsimon/syntax-mapping-build-script-use-quote
...
Build script: replace string-based codegen with `quote`-based codegen
2025-07-10 23:46:54 +03:00
Keith Hall
b387abea6b
Merge pull request #3342 from krikera/master
...
docs(man): update --style documentation with priority rules
2025-07-10 23:30:05 +03:00
Keith Hall
226efecdd6
Merge pull request #3337 from JerryImMouse/syntax-vhdl
...
Add syntax highlighting for VHDL language
2025-07-09 22:31:26 +03:00
Keith Hall
c18f5e054e
Merge pull request #3338 from cyqsimon/certbot
...
Add syntax mapping for certbot certificate configuration
2025-07-08 23:44:37 +03:00
Keith Hall
e2aa4bc33c
Merge pull request #3320 from krikera/add-mill-syntax-mapping
...
Add syntax mapping for Mill build tool files to use Scala syntax
2025-06-02 19:50:38 +03:00
Keith Hall
f11d34997a
Merge pull request #3317 from SchweGELBin/catppuccin
...
Themes: Add Catppuccin
2025-05-31 16:50:34 +03:00
Keith Hall
6886cdaace
Merge pull request #3315 from krikera/fix-utf8-bom-syntax-detection
...
Fix UTF-8 BOM file type detection for first-line syntax patterns
2025-05-31 14:45:50 +03:00
Keith Hall
0da4084064
Merge pull request #3300 from cskeeters/syntax_typst
...
Adds Typst syntax from hyrious/typst-syntax-highlight
2025-05-21 05:47:26 +03:00
Keith Hall
aa5e28bef5
Merge pull request #3299 from cyqsimon/quadlet
...
Update quadlet syntax mapping rules to cover quadlets in subdirectories
2025-05-20 21:40:43 +03:00
Keith Hall
c32fa662d5
Merge pull request #3298 from ZaneErebos/patch-2
...
Clarify situation in which man page and shell completions will be accessible when building from source
2025-05-19 04:42:28 +03:00
Keith Hall
79ecb11ce2
Add new sponsor Graphite to Readme ( #3270 )
...
* Add new sponsor Graphite to Readme
* hide bullet points in sponsors section of readme
* remove bullet points
2025-05-05 08:44:24 +02:00
Keith Hall
0b48eab7a6
Merge pull request #3276 from forkeith/livescript_fix
...
remove LiveScript submodule
2025-04-30 22:42:30 +03:00
Keith Hall
ccfbd1ee31
remove LiveScript submodule
...
the repo has gone away, causing all our CI etc. to break
we can keep the highlighting though because we have a .sublime-syntax file
2025-04-30 22:32:48 +03:00
Keith Hall
98c9a5d948
Merge pull request #3263 from gthb/patch-1
...
Fix copy-paste mistake in bat.1.in
2025-04-15 21:55:35 +03:00