1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-04 12:22:28 +01:00
Commit Graph

1036 Commits

Author SHA1 Message Date
John Cavanaugh
bb8c5657e1 fix: 🐛 allow three-part range parsing
fix(src/line_range.rs): 🐛 support three-part (start🔚context) syntax, clamp lower at zero and extend upper, and add tests for invalid formats
2025-07-15 16:36:58 -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
John Cavanaugh
6c13a98f01 feat: add context support to line-range syntax
docs(long-help.txt): 📚 add examples for N::C and N:M:C context syntax
docs(clap_app.rs): 📚 update CLI help text with context syntax examples
feat(line_range.rs):  implement N::C and N:M:C parsing and add tests
2025-07-15 16:17:09 -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
Y.D.X.
4661f22e81 Merge remote-tracking branch 'upstream/master' into lean 2025-07-11 13:03:06 +08:00
cyqsimon
e0165a2d6a Add syntax mapping for certbot certificate configuration 2025-07-08 23:33:41 +03:00
Jerry
9776ebfa0f Send errors to stderr (#3336)
* fix: send errors to stderr by default (#2561)

Closes #2561

* chore: add changelog entry

* chore: change PR id

* chore: add github username

* chore: cargo fmt...

* chore: move changelog line to bugfixes
2025-07-08 20:42:22 +02:00
Y.D.X.
a9d5880dc8 docs: Update CHANGELOG, allow CC BY 4.0 license, and fix a markdown backquote 2025-06-10 17:44:10 +08:00
krikera
9d3db318e3 Add syntax mapping for Mill build tool files to use Scala syntax 2025-06-01 22:03:54 +05:30
krikera
17e6952ab8 Fix UTF-8 BOM file type detection for first-line syntax patterns - Fixes #3314 2025-05-31 02:58:47 +05:30
cyqsimon
a4ffe2fdbf Update quadlet syntax mapping rules to cover quadlets in subdirectories 2025-05-20 15:22:55 +08:00
Keith Hall
e42883bf2c Merge branch 'master' into read-from-tail 2025-04-15 20:27:26 +03:00
Adam Gaskins
45185b36fb Merge branch 'master' into bash-zsh 2025-04-12 11:09:33 -04:00
Keith Hall
44a6e29da7 Merge branch 'master' into fix/multibyte-chars 2025-04-12 11:20:48 +03:00
Adam Gaskins
51491c3c08 Fix syntax highlighting for bash/zsh 2025-04-07 17:43:56 -04:00
Haris Mohamedy
b5413cc015 Do not split into graphemes if not necessary 2025-04-03 00:49:14 -07:00
einfachIrgendwer0815
12a2a451b4 Add paging to --list-themes 2025-04-02 11:27:37 +02:00
Haris Mohamedy
18b71743c8 Fix for multibyte characters in file path 2025-03-31 17:29:18 -07:00
Keith Hall
d31bc4347a Map various .NET file extensions to XML syntax 2025-02-23 20:20:52 +02:00
Keith Hall
2843a2c0e8 Add mapping for ndjson file extension to JSON syntax 2025-02-15 08:46:22 +02:00
odilf
61d42ee87b Add syntax mapping for nixs flake.lock 2025-02-02 21:10:03 +02:00
einfachIrgendwer0815
71dce0e7f3 Fix clippy::duplicated_attributes warnings 2025-02-02 15:08:16 +01:00
einfachIrgendwer0815
52252b15d6 Fix clippy::needless_lifetimes warnings 2025-02-02 15:08:15 +01:00
einfachIrgendwer0815
bc24ce9ad4 Fix clippy::needless_update warnings 2025-02-02 15:08:15 +01:00
einfachIrgendwer0815
625e986552 Fix clippy::manual_ignore_case_cmp warnings 2025-02-02 15:08:14 +01:00
einfachIrgendwer0815
095442191c Fix clippy::ptr_arg warnings 2025-02-02 15:08:14 +01:00
einfachIrgendwer0815
cc46282866 Fix clippy::into_iter_on_ref warnings 2025-02-02 15:08:13 +01:00
einfachIrgendwer0815
cbc9c3629d Fix clippy::manual_pattern_char_comparison warnings 2025-02-02 15:08:13 +01:00
einfachIrgendwer0815
2c49d905e4 Fix clippy::legacy_numeric_constants warnings 2025-02-02 15:08:12 +01:00
einfachIrgendwer0815
f0e2f642e0 Fix clippy::redundant_closure warnings 2025-02-02 15:08:12 +01:00
einfachIrgendwer0815
3d0f0c0565 Fix clippy::unnecessary_map_or warnings 2025-02-02 15:08:12 +01:00
einfachIrgendwer0815
3d442cdf98 Fix clippy::needless_borrow warnings 2025-02-02 15:08:11 +01:00
einfachIrgendwer0815
b009fee5ea Fix clippy::needless_return warnings 2025-02-02 15:08:11 +01:00
einfachIrgendwer0815
6cf747678c Fix clippy::needless_borrows_for_generic_args warnings 2025-02-02 15:08:11 +01:00
einfachIrgendwer0815
4f161705a3 Fix: Don't output default theme info to piped stdout 2025-01-27 17:11:26 +01:00
cyqsimon
94f49fd99b Add syntax mapping for paru configuration 2025-01-24 23:02:57 +02:00
Tau Gärtli
280f3eeb4e Fix name of BAT_THEME_{DARK,LIGHT} env vars 2025-01-09 08:20:36 +01:00
Anomalocaridid
de8bb79a6f refactor lessopen implementation 2025-01-05 21:36:33 +00:00
einfachIrgendwer0815
dbe25ba5e6 Include shell completions in the executable 2024-12-01 09:39:17 +01:00
Leo
f87157d009 Update syntax mapping for apache conf 2024-12-01 11:15:17 +08:00
binchengqu
d27064cea5 chore: remove redundant word in comment
Signed-off-by: binchengqu <bincheng@before.tech>
2024-11-21 11:55:43 +08:00
kojix2
6598442d41 Merge branch 'master' into print 2024-11-14 10:08:21 +09:00
Keith Hall
2e836e9822 Merge branch 'master' into mhelsley-fix-lessopen 2024-11-13 21:42:36 +02:00
Keith Hall
08047a6a2e Merge branch 'master' into dark-light 2024-11-13 20:54:57 +02:00
Keith Hall
60693db73f Merge branch 'master' into dark-light 2024-11-13 20:33:37 +02:00
Keith Hall
dbe352d8b8 Merge branch 'master' into citation-mapping 2024-11-13 20:25:26 +02:00
kojix2
ca43c7a8f8 Merge branch 'master' into print 2024-10-31 15:04:14 +09:00
Jacek Generowicz
0a8bfc52a6 Move from unix-family to common 2024-10-31 08:03:45 +02:00
Jacek Generowicz
9090fb75e0 Make .debdiff imply .diff using syntax_mapping toml
Closes #2940
2024-10-31 08:03:45 +02:00
Keith Hall
bd3c49d234 Merge remote-tracking branch 'origin/master' into pacman-conf 2024-10-31 05:08:46 +02:00