1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-06-15 12:55:58 +01:00
Commit Graph

3067 Commits

Author SHA1 Message Date
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
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
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 ()
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 ()
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 ()
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 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 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 )
Use PR instead of Issue # number in CHANGELOG.

Clean up (unify) CHANGELOG.
2024-07-27 15:48:02 +02:00
9f1c62b013 Merge pull request from brenton-at-pieces/add-cfml
add CFML syntax
2024-07-26 19:45:44 +03:00
1488a4a006 Merge branch 'master' into add-cfml 2024-07-26 09:09:30 -04:00
56d2823b0e Merge pull request from cyqsimon/time
Bump time to 0.3.36 (fixes )
2024-07-26 12:12:57 +03:00
1a11ba11e3 Write changelog 2024-07-26 16:18:16 +08:00
c34bdb5e66 Bump time to 0.3.36 (fixes ) 2024-07-26 16:10:17 +08:00
10456e1d51 Merge branch 'master' into add-cfml 2024-07-25 15:54:50 -04:00
bbdadc7e38 Merge pull request from vorburger/bump-textproto
Update the Protobuf sobmodule in order to add `.textproto` support
2024-07-23 23:02:35 +03:00