Commit Graph

3188 Commits

Author SHA1 Message Date
16a79d38c2 Bump once_cell from 1.19.0 to 1.20.1 (#3091)
Bumps [once_cell](https://github.com/matklad/once_cell) from 1.19.0 to 1.20.1.
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md)
- [Commits](https://github.com/matklad/once_cell/compare/v1.19.0...v1.20.1)

---
updated-dependencies:
- dependency-name: once_cell
  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-10-01 03:02:02 +00:00
9d635627dc Bump globset from 0.4.14 to 0.4.15 (#3090)
Bumps [globset](https://github.com/BurntSushi/ripgrep) from 0.4.14 to 0.4.15.
- [Release notes](https://github.com/BurntSushi/ripgrep/releases)
- [Changelog](https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md)
- [Commits](https://github.com/BurntSushi/ripgrep/compare/globset-0.4.14...ignore-0.4.15)

---
updated-dependencies:
- dependency-name: globset
  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-10-01 02:40:45 +00:00
bc69ffb0f0 Map *.mkd files to Markdown syntax (#3061) 2024-09-26 21:06:07 +02:00
a0226f5670 Update Chinese version translation of README.md 2024-09-20 06:28:20 +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
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