Commit Graph

994 Commits

Author SHA1 Message Date
d27064cea5 chore: remove redundant word in comment
Signed-off-by: binchengqu <bincheng@before.tech>
2024-11-21 11:55:43 +08:00
6598442d41 Merge branch 'master' into print 2024-11-14 10:08:21 +09:00
2e836e9822 Merge branch 'master' into mhelsley-fix-lessopen 2024-11-13 21:42:36 +02:00
08047a6a2e Merge branch 'master' into dark-light 2024-11-13 20:54:57 +02:00
60693db73f Merge branch 'master' into dark-light 2024-11-13 20:33:37 +02:00
dbe352d8b8 Merge branch 'master' into citation-mapping 2024-11-13 20:25:26 +02:00
ca43c7a8f8 Merge branch 'master' into print 2024-10-31 15:04:14 +09:00
0a8bfc52a6 Move from unix-family to common 2024-10-31 08:03:45 +02:00
9090fb75e0 Make .debdiff imply .diff using syntax_mapping toml
Closes #2940
2024-10-31 08:03:45 +02:00
bd3c49d234 Merge remote-tracking branch 'origin/master' into pacman-conf 2024-10-31 05:08:46 +02:00
3b71837174 Merge branch 'master' into fix/2731_plain_override 2024-10-30 13:06:13 +01:00
8d82402d74 Merge branch 'master' into feature/binary_as_text 2024-10-30 12:46:11 +01:00
b93a41a9a3 Add print_with_writer to PrettyPrint 2024-10-23 21:21:15 +09:00
a80d5ea9f7 Merge branch 'master' into pacman-conf 2024-10-21 23:02:56 +03:00
c11a7d9e41 Merge branch 'master' into kubernetes 2024-10-21 23:01:30 +03:00
c9fd0f3cf0 Add partial override of -pp and --paging 2024-10-18 12:13:41 +02:00
fd6c7637e4 Partially revert "Make -pp override --paging and vice versa when passed as a later argument. (#2660)"
This partially reverts commit e2bf85e749.
2024-10-18 11:46:51 +02:00
9a816c9c68 Add syntax mapping for CITATION.cff 2024-10-13 11:47:31 +02:00
431344ba67 Merge branch 'master' into mhelsley-fix-lessopen 2024-10-06 21:52:34 -07:00
b01ed8d773 Merge branch 'master' into fix/3073_list_themes 2024-10-06 22:08:00 +03:00
3e5f4266ce Fix lessopen feature
RawOsString API changed in os_str_bytes 7.0.0 and bat no longer builds
with the lessopen feature because:

- ::from_string() is deprecated and says to use new().
  The documentation says that new(), like from_string() no longer
  needs to copy the string.

- ::assert_from_raw_vec() is no longer merely deprecated and now
  requires selecting the "conversions" feature of os_str_bytes.

Replaces PR#2938
2024-10-03 16:32:23 -07:00
bc69ffb0f0 Map *.mkd files to Markdown syntax (#3061) 2024-09-26 21:06:07 +02:00
ed7789d9b7 Associate GeoJSON .geojson files with json syntax (fixes #3083) 2024-09-20 06:14:26 +02:00
b747184788 Accept impl Into<String> to avoid cloning strings 2024-09-08 17:11:11 +02:00
02ae6ef348 Remove redundant guard 2024-09-07 22:59:27 +02:00
0ebb9cbfe2 Add Display impl 2024-09-07 21:57:27 +02:00
f6cbee9e27 Update docs 2024-09-07 21:36:03 +02:00
10e823c4b7 Rename internal function 2024-09-07 21:36:03 +02:00
60e4027332 Expose theme env vars 2024-09-07 21:36:02 +02:00
e075fee5bf Add infallible constructor 2024-09-07 21:36:02 +02:00
16d9b99f6c Flatten preference enum 2024-09-04 21:18:29 +02:00
0603f0b844 Don't output default theme info to piped stdout 2024-08-25 10:54:46 +02:00
50958472e5 Return theme alongside detected color scheme 2024-08-23 18:03:07 +02:00
89ce060183 Update help, man page and completions 2024-08-18 20:32:59 +02:00
bc42149a72 Merge color scheme options into theme / BAT_THEME 2024-08-18 14:59:14 +02:00
0c3b22e0f0 Run syntax highlighting when --binary=as-text 2024-08-18 10:06:12 +02:00
7f089ead62 Add option --binary
`--binary` allows to specify how to deal with binary content. Current
options are not printing anything or treating the binary data as text.
2024-08-18 10:05:37 +02:00
b9b981f657 Generalize --detect-color-scheme to --color-scheme 2024-08-16 14:14:30 +02:00
abf9dada04 Remove HighlightingAssets::default_theme() 2024-08-16 14:13:58 +02:00
5c6974703e Respect --detect-color-scheme flag when listing themes 2024-08-16 14:13:58 +02:00
1b0a6da4be Use new default_theme fn for --list-themes 2024-08-16 14:13:58 +02:00
e8ca6ec7c3 Remove cargo feature 2024-08-16 14:13:18 +02:00
6498615f5f Improve upon the documentation 2024-08-16 14:13:18 +02:00
30b0143ccf Make default_theme pub 2024-08-16 14:13:17 +02:00
ff81cfd584 Move actual detection into library 2024-08-16 14:13:16 +02:00
cea45e05f3 Expose new theme selection in CLI 2024-08-16 14:12:22 +02:00
cda363a3f7 Use default_theme() function from theme module 2024-08-16 14:09:38 +02:00
de796392cf Deprecate old default_theme function 2024-08-16 14:09:38 +02:00
1423dd9440 Choose theme based on the terminal's color scheme 2024-08-16 14:09:35 +02:00
aa3ec109b7 First StyleComponentList should remove from 'auto' style.
This happens when there are no `--style` arguments other than the one
passed in as a command line argument.

Prior to this change, removing a style component (e.g. `--style=-numbers`)
would remove the component from an empty style component set, resulting
in no styles at all. That behaviour was less intuitive than the new
behaviour, which starts out with the default components and
removes the line numbers.
2024-07-30 21:22:02 -07:00