Orion Yeung
9ba3b6ed13
No duplicate keys test, fixes #2643 ( #2647 )
...
* moved unit tests to conditional compile
made module `tests` and conditionally compiled
* added test to check for duplicate keys in builtin
checks all pairs in GlobMatcher::mappings via `GlobMatcher::glob`s `Eq`
panics at first match
```rs
SyntaxMapping {
mappings: Vec<(
GlobMatcher {
glob: Glob, ...,
}, ...,
}, ...,
}
```
* output more info with test failure
* dont duplicatively add git config path
* use guard in match for adding builtin git config syntax mapping
---------
Co-authored-by: Orion Yeung <11580988+orionyeung001@users.noreply.github.com>
2023-09-01 21:11:41 +02:00
Peter Hebden
72e1a40bab
Remove leftover unwrap
2023-09-01 20:52:55 +02:00
Peter Hebden
33a89410d4
Add example to show new feature
2023-09-01 20:52:55 +02:00
Peter Hebden
b2c28cdddb
Clippy lints
2023-09-01 20:52:55 +02:00
Peter Hebden
906e774372
Handle todos
2023-09-01 20:52:55 +02:00
Peter Hebden
d929becefc
Fix signatures
2023-09-01 20:52:55 +02:00
Peter Hebden
103a2f0d9b
Add OutputHandle
enum to use instead of &mut dyn io::Write
2023-09-01 20:52:55 +02:00
rhysd
d33b2e158e
Replace unmaintained encoding
with encoding_rs
2023-09-01 20:41:55 +02:00
David Peter
d295b3a394
Merge pull request #2613 from sharkdp/dependabot/cargo/expect-test-1.4.1
...
Bump expect-test from 1.4.0 to 1.4.1
2023-09-01 20:09:30 +02:00
David Peter
81a217b1f3
Merge pull request #2519 from sitiom/winget-releaser
...
Add Winget Releaser workflow
2023-09-01 20:01:02 +02:00
dependabot[bot]
bb17f74757
Bump assets/syntaxes/02_Extra/Docker from 9e9a518
to 0f6b7bc
...
Bumps [assets/syntaxes/02_Extra/Docker](https://github.com/asbjornenge/Docker.tmbundle ) from `9e9a518` to `0f6b7bc`.
- [Release notes](https://github.com/asbjornenge/Docker.tmbundle/releases )
- [Commits](9e9a518aed...0f6b7bc87a
)
---
updated-dependencies:
- dependency-name: assets/syntaxes/02_Extra/Docker
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-01 19:34:48 +02:00
dependabot[bot]
75928d20f8
Bump nu-ansi-term from 0.47.0 to 0.49.0
...
Bumps [nu-ansi-term](https://github.com/nushell/nu-ansi-term ) from 0.47.0 to 0.49.0.
- [Release notes](https://github.com/nushell/nu-ansi-term/releases )
- [Changelog](https://github.com/nushell/nu-ansi-term/blob/main/CHANGELOG.md )
- [Commits](https://github.com/nushell/nu-ansi-term/compare/v0.47.0...v0.49.0 )
---
updated-dependencies:
- dependency-name: nu-ansi-term
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-01 19:32:30 +02:00
dependabot[bot]
2cc45eea1a
Bump clap from 4.3.0 to 4.4.2
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.3.0 to 4.4.2.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.3.0...v4.4.2 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-01 19:32:16 +02:00
dependabot[bot]
7dbc6e3da4
Bump tempfile from 3.5.0 to 3.8.0
...
Bumps [tempfile](https://github.com/Stebalien/tempfile ) from 3.5.0 to 3.8.0.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.5.0...v3.8.0 )
---
updated-dependencies:
- dependency-name: tempfile
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-01 19:31:59 +02:00
dependabot[bot]
f34b852aa8
Bump git2 from 0.16.1 to 0.18.0
...
Bumps [git2](https://github.com/rust-lang/git2-rs ) from 0.16.1 to 0.18.0.
- [Changelog](https://github.com/rust-lang/git2-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/git2-rs/compare/0.16.1...git2-0.18.0 )
---
updated-dependencies:
- dependency-name: git2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-01 18:01:55 +02:00
einfachIrgendwer0815
4b04f901fe
Add test for BAT_PAGING
2023-09-01 17:59:41 +02:00
einfachIrgendwer0815
26111950b3
Add environment variable BAT_PAGING
2023-09-01 17:59:41 +02:00
Orion Yeung
f21d3502e1
Add *.ron
syntax mapping
...
Add a mapping to use `Rust` for rusty object notation, identified by `.ron` extension. See [#2427 ](https://github.com/sharkdp/bat/issues/2427 ).
2023-09-01 17:57:46 +02:00
Maros Kukan
5687af8bc7
feat: describe WinGet method for Windows install
2023-09-01 17:53:26 +02:00
nazar
0f5f51f9ba
Fixed RU readme typos
2023-09-01 17:51:30 +02:00
Jan T. Sott
32c0e1fb45
update highlighted test file
2023-09-01 17:50:30 +02:00
Jan T. Sott
34440f1b0c
update highlighted test file
2023-09-01 17:50:30 +02:00
Jan T. Sott
f1d6cc7a64
add test files for NSIS syntax
2023-09-01 17:50:30 +02:00
Jan T. Sott
628ba5d31f
add NSIS support
2023-09-01 17:50:30 +02:00
dependabot[bot]
e24150ca3f
Bump assets/syntaxes/02_Extra/Julia from 4fde0fd
to 98233f9
...
Bumps [assets/syntaxes/02_Extra/Julia](https://github.com/JuliaEditorSupport/Julia-sublime ) from `4fde0fd` to `98233f9`.
- [Release notes](https://github.com/JuliaEditorSupport/Julia-sublime/releases )
- [Commits](4fde0fdedd...98233f96d4
)
---
updated-dependencies:
- dependency-name: assets/syntaxes/02_Extra/Julia
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-01 17:48:06 +02:00
WinterCore
d580445aef
fix: Add syntax mapping jsonl
=> json
2023-09-01 17:45:41 +02:00
Martin Nordholts
48dc2b0d90
CICD: Add all-jobs
job
...
This opens up future possibilities:
* GitHub's auto-merge feature that merges a PR once CI passes
* Auto-merge of dependabot PRs that pass CI
But before we do any of that we need to have this new job active for a
while to see that it works.
2023-09-01 17:42:14 +02:00
mataha
82664e3c82
Bump MSRV to 1.70.0
...
The intention is to take advantage of `std::io::IsTerminal` that landed
in 1.70.0, both in `bat` and its dependencies (`clap`, `grep-cli`).
This will fix #2570 as well - `grep-cli` 0.1.9 has a patch for that.
Signed-off-by: mataha <mataha@users.noreply.github.com>
2023-09-01 05:42:45 +02:00
Ville Skyttä
1893405cbf
Add .dpkg-new and .dpkg-tmp to ignored suffixes
...
Refs https://www.debian.org/doc/manuals/debian-handbook/sect.package-meta-information.en.html#sect.conffiles
2023-08-28 17:50:29 +02:00
Keith Hall
00b7e3b864
Merge pull request #2639 from johnmatthiggins/doc_fix
...
fix for issue #2095
2023-08-09 17:38:15 +03:00
John Higgins
7826e506f8
Merge branch 'master' into doc_fix
2023-08-02 09:00:29 -07:00
David Peter
6dd8b28b0d
Merge pull request #2638 from johnmatthiggins/master
...
fix for issue #2633
2023-08-02 15:24:02 +02:00
John Higgins
b720af8a06
fix for issue #2095
2023-08-02 00:28:26 -07:00
John Higgins
b1fbcc8a6e
fix for issue #2633
2023-08-02 00:04:55 -07:00
Martin Nordholts
9bf74d687f
Cargo.lock: Bump proc-macro2 to fix build with Rust nightly
...
Without fix:
$ cargo +nightly build
Compiling proc-macro2 v1.0.54
error[E0635]: unknown feature `proc_macro_span_shrink`
--> /home/martin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.54/src/lib.rs:92:30
|
92 | feature(proc_macro_span, proc_macro_span_shrink)
| ^^^^^^^^^^^^^^^^^^^^^^
For more information about this error, try `rustc --explain E0635`.
error: could not compile `proc-macro2` (lib) due to previous error
2023-07-27 07:08:38 +02:00
Keith Hall
783d4877e1
Merge pull request #2615 from einfachIrgendwer0815/feature_containerfile_mapping
...
Add `Containerfile` syntax mapping
2023-07-14 19:56:49 +03:00
einfachIrgendwer0815
8b187e6997
Update CHANGELOG
2023-07-02 13:55:54 +02:00
einfachIrgendwer0815
c46c53320b
Add Containerfile
syntax mapping
2023-07-02 13:50:37 +02:00
dependabot[bot]
7f884fa582
Bump expect-test from 1.4.0 to 1.4.1
...
Bumps [expect-test](https://github.com/rust-analyzer/expect-test ) from 1.4.0 to 1.4.1.
- [Changelog](https://github.com/rust-analyzer/expect-test/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-analyzer/expect-test/compare/v1.4.0...v1.4.1 )
---
updated-dependencies:
- dependency-name: expect-test
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-01 02:58:07 +00:00
David Peter
8676bbf97f
Update clircle
...
See https://github.com/niklasmohrin/clircle/issues/10
2023-06-14 20:14:11 +02:00
sitiom
77069b368c
Update CICD.yml
2023-06-07 17:30:10 +08:00
David Peter
70e49bd32b
Merge pull request #2587 from cyqsimon/os-release
...
Add `os-release` syntax mapping
2023-06-03 23:29:09 +02:00
dependabot[bot]
5042f969e5
Bump clap from 4.2.6 to 4.3.0
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.2.6 to 4.3.0.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.2.6...clap_complete-v4.3.0 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-03 09:30:39 +02:00
dependabot[bot]
876f5d4113
Bump serde from 1.0.160 to 1.0.163
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.160 to 1.0.163.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.163 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-02 05:49:14 +02:00
dependabot[bot]
39d9d64e1e
Bump regex from 1.8.1 to 1.8.3
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.8.1 to 1.8.3.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.8.1...1.8.3 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-01 20:43:59 +02:00
cyqsimon
8e866babfc
Write changelog
2023-06-01 13:25:02 +08:00
cyqsimon
f8c700027e
Add os-release
syntax mapping
2023-06-01 13:17:22 +08:00
Martin Nordholts
7639e8b406
CICD.yml: Run cargo audit
...
This CI check will fail if there are crates with known security vulnerabilities in Cargo.lock.
It will not fail because of warnings. We currently have two warnings.
Note that cargo-audit is installed by default on GitHub's Ubuntu
runners.
2023-05-24 05:43:36 +02:00
Nigecat
149dec6953
Fix paging not happening when stdout is interactive but stdin is not
2023-05-22 05:42:01 +02:00
lesleyrs
b420c42aff
update readme
2023-05-17 06:25:20 +02:00