Commit Graph

3176 Commits

Author SHA1 Message Date
16d9b99f6c Flatten preference enum 2024-09-04 21:18:29 +02:00
ffa74a7f49 Bump serde from 1.0.199 to 1.0.209 (#3077)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.199 to 1.0.209.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.199...v1.0.209)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-01 03:05:26 +00:00
c1772b7793 Bump plist from 1.6.0 to 1.7.0 (#3076)
Bumps [plist](https://github.com/ebarnard/rust-plist) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/ebarnard/rust-plist/releases)
- [Commits](https://github.com/ebarnard/rust-plist/compare/v1.6.0...v1.7.0)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-01 02:45:53 +00:00
5be9d19500 Reinforce tests for --list-themes 2024-08-25 11:10:25 +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
a769a3d813 Update CHANGELOG 2024-08-18 10:06:09 +02:00
7cc231b82b Test --binary=as-text 2024-08-18 10:05:43 +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
06b645435a Add changelog entry 2024-08-16 14:13:57 +02:00
c3b190d45b Disable color detection in test 2024-08-16 14:13:18 +02:00
594b1417f1 Update readme 2024-08-16 14:13:18 +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
14ce668a1d Add generated powershell completion to ignore list 2024-08-16 14:12:23 +02:00
9a1bfe946d Update completions and man page 2024-08-16 14:12:23 +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
b662fec214 Bump ansi_colours from 1.2.2 to 1.2.3 (#3058)
Bumps [ansi_colours](https://github.com/mina86/ansi_colours) from 1.2.2 to 1.2.3.
- [Commits](https://github.com/mina86/ansi_colours/commits)

---
updated-dependencies:
- dependency-name: ansi_colours
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-01 03:28:12 +00:00
d8d0b77568 Bump indexmap from 2.2.6 to 2.3.0 (#3057)
Bumps [indexmap](https://github.com/indexmap-rs/indexmap) from 2.2.6 to 2.3.0.
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/master/RELEASES.md)
- [Commits](https://github.com/indexmap-rs/indexmap/compare/2.2.6...2.3.0)

---
updated-dependencies:
- dependency-name: indexmap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-01 03:14:26 +00:00
13317b0a3b Bump expect-test from 1.4.1 to 1.5.0 (#3055)
Bumps [expect-test](https://github.com/rust-analyzer/expect-test) from 1.4.1 to 1.5.0.
- [Changelog](https://github.com/rust-analyzer/expect-test/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-analyzer/expect-test/compare/v1.4.1...v1.5.0)

---
updated-dependencies:
- dependency-name: expect-test
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-01 02:47:46 +00:00
2616296183 Merge pull request #2929 from eth-p/add-remove-styles
Merge `--style`s from different places using `+`/`-`
2024-07-30 21:30:19 -07:00
39684b85ad Update changelog 2024-07-30 21:22:05 -07: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
180a77ee99 Add integration tests for merging styles
A huge thanks to @einfachIrgendwer0815 for helping me make sure
these tests work under the MSRV CI job.
2024-07-30 21:22:00 -07:00
93b25d75a0 Join env var options with "=" instead of " "
Joining them with a space was causing certain styles (e.g. `-grid`) to
be misinterpreted as a separate option.
2024-07-30 21:21:58 -07:00
6e91ba83b7 Update clap/docs for merging --style arguments 2024-07-30 21:21:55 -07:00
b74c125c43 Support merging --style arguments
The `overrides_with` clap builder option was removed
because it interfered with the matcher's ability to
retain all occurrences of `--style`.

The behavior it covered is expressed within the new
`forced_style_components` function.
2024-07-30 21:21:53 -07:00
fd1e0d5876 Merge pull request #2995 from akinomyoga/update-man
Update the man page of bat (`assets/manual/bat.1.in`)
2024-07-29 07:14:31 +03:00
9a650e8279 Update CHANGELOG 2024-07-29 12:18:40 +09:00
d5aa9d8e05 Add options generated by completions to the man page 2024-07-29 12:18:40 +09:00
b1cdc06430 Add --no-* options to Bash/Zsh completions 2024-07-29 12:18:40 +09:00
83a15ac05f Add --cache-dir to Fish completion 2024-07-29 12:18:40 +09:00
43a77a42f8 Add options present in --help to Bash completion 2024-07-29 12:18:40 +09:00
44ca1e7df1 Add options present in --help to the man page 2024-07-29 12:18:40 +09:00
23fd200482 Associate JSON-LD .jsonld files with json syntax (fixes #3036)
Use PR instead of Issue # number in CHANGELOG.

Clean up (unify) CHANGELOG.
2024-07-27 15:48:02 +02:00
9f1c62b013 Merge pull request #3031 from brenton-at-pieces/add-cfml
add CFML syntax
2024-07-26 19:45:44 +03:00
319b8868fc Write changelog 2024-07-26 23:39:27 +08:00
7bd6cdbebc Add syntax mapping for kubernetes config files 2024-07-26 23:23:58 +08:00