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
alcroito
d9ac757b6a
Add CI build for windows/ARM64
...
Fixes : #2644
2025-08-14 17:56:00 +02:00
John Cavanaugh
3fd3f1def8
Merge branch 'master' into master
2025-08-13 23:27:26 -07:00
Nicholas Schwab
183def9569
docs(changelog): update gruvbox theme
2025-08-10 17:52:30 +02:00
Keith Hall
9d3245eebe
Replace missing asset submodules
2025-08-07 22:45:22 +03:00
Ferenc Géczi
bac58be1ee
Add entry to CHANGELOG.md
...
Signed-off-by: Ferenc Géczi <ferenc.gm@gmail.com >
2025-07-31 00:00:00 +00:00
Benjamin A. Beasley
3dfb51b25d
Add changelog entry for PR#3351
2025-07-23 08:04:24 -04:00
Tau Gärtli
38762724f5
Add changelog entry
2025-07-22 07:28:16 +02:00
Keith Hall
35c3f065a3
Update changelog
2025-07-17 22:20:42 +03:00
John Cavanaugh
b97c275de5
Restore original formatting that my editor decided to "autocorrect"
2025-07-16 16:40:43 -07:00
John Cavanaugh
eadf15d9c0
docs: 📚 correct changelog PR reference
...
docs(CHANGELOG.md): 📚 correct PR number for context in line ranges entry from #3344 to #3345
2025-07-15 16:43:11 -07:00
John Cavanaugh
dc2eae08a6
docs: 📚 update changelog for range context support
...
docs(CHANGELOG.md): 📚 add entry for context in line ranges and normalize list formatting
style(src/line_range.rs): 🎨 trim trailing whitespace in context parsing code
2025-07-15 16:25:28 -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
Stéphane Blondon
9121746f05
test: code coverage for list-languages parameter
2025-07-14 16:40:14 +02:00
SchweGELBin
cf147a440e
docs(changelog): update catppuccin theme
2025-07-11 20:29:29 +03:00
Y.D.X.
4661f22e81
Merge remote-tracking branch 'upstream/master' into lean
2025-07-11 13:03:06 +08:00