1
0
mirror of https://github.com/sharkdp/bat synced 2026-07-25 17:21:43 +00:00
Commit Graph

510 Commits

Author SHA1 Message Date
Hakil ad608014d9 fix issue #3526 (#3529) 2025-12-23 19:08:38 +02:00
Alex Kirk 4db185834b Update changelog 2025-12-11 06:12:44 +01:00
Alex Kirk 59c5896902 Simplify MANPAGER guide 2025-12-11 05:49:46 +01:00
Alex Kirk 64a4b204a2 Only strip overstrike when a syntax highlighting theme is used 2025-12-11 05:49:46 +01:00
Alex Kirk 80ef6832d3 Add a changelog entry 2025-12-11 05:49:46 +01:00
Keith Hall b7dd88eafd Support custom assets (themes) when displaying help output 2025-12-10 22:30:01 +02:00
Keith Hall d15e399fce [CSV] don't apply string highlighting by default 2025-12-07 21:55:05 +02:00
Shun Sakai abce6ac0d1 chore: Change URL of Zig submodule 2025-12-06 12:00:48 +09:00
Keith Hall 1796324531 Fix --help --pager=builtin
Previously it still used less
2025-12-04 21:53:45 +02:00
Keith Hall c054541776 add empty changelog sections ready for future changes 2025-12-03 22:37:26 +02:00
Keith Hall 19ab724a73 Prepare for next release 2025-12-02 22:33:02 +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 2c7fc5f926 update changelog 2025-12-01 06:51:04 +02:00
Cedric Staniewski a6e0057c12 Add syntax mapping for podman's artifact quadlet files 2025-11-30 14:18:12 +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 7d37325c19 Fix to not show style decorations in auto mode when piping 2025-11-30 05:02:13 +02:00
Keith Hall 1ee1d8fdff update changelog 2025-11-27 21:57:47 +02:00
Keith Hall 6884a8e7e0 Update changelog 2025-11-24 21:56:05 +02:00
Muntasir Mahmud 70ec3fc24e feat: add paging to '-h' and '--help' (#3478)
* feat: add paging to '-h' and '--help'

Fixes #1587
2025-11-23 20:10:56 +00:00
Keith Hall cfe49779fa Merge branch 'master' into fix/list-themes-pager-hang 2025-11-15 15:41:07 +02:00
AldanTanneo 1abecd2c93 update Ada syntax gitmodule 2025-11-14 11:41:08 +01:00
cyqsimon 015cafdbdc Write changelog 2025-11-13 13:50:53 +08:00
abhinavcool42 a8140f91cc changelog 2025-10-28 17:25:43 +05:30
abhinavcool42 2fac9b2740 added changelog 2025-10-28 17:07:12 +05:30
Justin Su 4e13c3eb5b Update CHANGELOG.md
Also fix a typo from the previous release
2025-10-20 19:23:26 +02:00
Koichi Murase 3188a147d8 Use "-o fullquote" and "-o noquote" to escape Bash completions 2025-10-20 19:38:54 +09:00
Louis Maddox 52a792d46f fix: allow hyphen values to -r/--line-range
via #2944
2025-10-19 21:24:59 +01:00
Keith Hall 2c63d3c792 Prepare changelog for future changes 2025-10-19 21:24:54 +03:00
Keith Hall 3331a306c9 Prepare to release v0.26.0 2025-10-19 21:06:26 +03:00
Louis Maddox 7eedc0f854 feat(pipe-style): make output pipeable (any style) 2025-10-18 10:29:39 +01:00
MuntasirSZN b0fa9e1dfe feat: add typeScript syntax highlighting support for markdown code blocks
- Added TypeScript/ts language support to Markdown.sublime-syntax.patch
- Code blocks with ```typescript or ```ts will now use TypeScript syntax highlighting
- Updated patch hunk headers to reflect added lines
2025-10-13 17:27:50 +06:00
Keith Hall d3cf75a36e Update changelog 2025-10-09 21:50:58 +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 98b75db115 Update changelog 2025-10-08 22:46:08 +03:00
0x61nas 1838e25d2f feat(cargo): add vendored-libgit2 feature (#3426)
* feat(cargo): add vendored-libgit2 feature

this is done to resolve the issues when the host system doesn't have
`libgit2` installed or if its incompatible with the version we expect

see: sharkdp/bat/issues/2939

* docs(changelog): add vendored libgit2 entry
2025-10-08 19:48:25 +02:00
Keith Hall 8e90efb2b4 Add missing shell completions for various CLI arguments 2025-10-07 22:30:53 +03:00
Keith Hall d478ba2923 Merge branch 'master' into dmesg_syntax_mapping 2025-10-07 20:12:34 +03:00
DarkMatter-999 7ee6ee385e docs: update CHANGELOG.md 2025-10-03 13:09:57 +05:30
Keith Hall 839bfded39 Map /var/log/dmesg to Syslog syntax 2025-09-27 22:48:13 +03:00
Ritoban Dutta e879f532a7 Mapping .kshrc to bash for syntax highlighting #3361 (#3364)
* Add syntax highlighting support for .kshrc files and update mapping in KornShell syntax #3361
2025-09-23 16:56:52 +00:00
jyn c8b8132228 Only leave space for git diff markers if any line is modified (#3406)
Previously, setting `--style=changes` would always print a 2-space
indent, even if the file was unmodified. This changes the style to only
print an indent if there is at least one +/- git marker in the sidebar.
2025-09-22 07:42:56 +02:00
Academician c36dbf86f5 Add builtin pager to changelog 2025-09-09 16:26:49 -04:00
Cosmic Horror d7f11869ab build(deps): bump onig_sys 69.8.1 to 69.9.1 2025-09-04 00:00:18 -06:00
Sorin Sbarnea d291b3e5fa chore: Fix some typos (#3244) 2025-08-28 17:30:50 +00:00
Cosmic Horror 120c39429f deps: Bump assets/themes/github-sublime-theme from 508740b to 59e525f 2025-08-19 21:53:01 -06:00
John Cavanaugh 36d25c8642 Merge branch 'master' into master 2025-08-19 20:34:08 -07:00
Keith Hall 96ce80d0e2 Apply same fix and tests for UTF16BE 2025-08-16 15:36:45 +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
John Cavanaugh 3516a3311a Merge branch 'master' into master 2025-08-15 06:34:33 -07:00