summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2022-05-29Add exemplary hexyl pluginbat-pluginsDavid Peter
2022-05-29Add simple 'directories' pluginDavid Peter
2022-05-29Add initial version of curl pluginDavid Peter
2022-05-29Fix loading of several pluginsDavid Peter
2022-05-29Better error handlingDavid Peter
2022-05-29Initial prototype for Lua pluginsDavid Peter
2022-05-24Make the default macOS theme depend on Dark Mode (#2197)Martin Nordholts
* Make the default macOS theme depend on Dark Mode We frequently get complaints from macOS users that bat does not work on their default macOS terminal background, which is white. Pay the price of slightly increased startup time to get a better default on macOS. To avoid the slightly increased startup time, simply specify a theme explicitly via `--theme`, `BAT_THEME`, or `~/.config/bat`. Note that if there is an error when we check if Dark Mode is enabled, we behave the same as on Windows and Linux; assume that the terminal background is dark. This harmonizes behavior across platforms, and makes bat behave the same as before, when Dark Mode was always assumed to be enabled. * src/assets.rs: Fix typo * Update CHANGELOG.md
2022-05-22Refer to discussions page in issue templates.David Peter
2022-05-16Add CHANGELOG entryDavid Peter
2022-05-16Use cross to build x86_64-unknown-linux-gnu executablesDavid Peter
We do this in order to link against older versions of glibc. closes #2106
2022-05-15CHANGELOG.md: Remove empty Themes section for v0.21.0Martin Nordholts
2022-05-12Post-release: Prepare an "unreleased" section at the top of CHANGELOG.mdMartin Nordholts
As per `doc/release-checklist.md`.
2022-05-12assets/create.shv0.21.0Martin Nordholts
2022-05-12CHANGELOG.md: unreleased -> v0.21.0Martin Nordholts
2022-05-12Bump to v0.21.0Martin Nordholts
2022-05-11Make `INI` syntax register as handler of `.inf` filesMartin Nordholts
We need to type `inf` and `INF` as strings in `INI.sublime-syntax`, otherwise `yaml-rust` interprets them as real numbers ("infinity") and they do not get registered as file extensions: /Users/martin/src/yaml-rust # https://github.com/chyh1990/yaml-rust % cargo run --example dump_yaml ~/src/bat/assets/syntaxes/02_Extra/INI.sublime-syntax --- String("name"): String("INI") String("file_extensions"): String("ini") String("INI") Real("inf") Real("INF") ... Also add a regression test.
2022-05-09release-checklist.md: Don't recommend `--allow-dirty` to cargo publishMartin Nordholts
Using `--allow-dirty` increases the risk of the published code not being versioned properly in git.
2022-05-09release-checklist.md: Recommend looking at the tip of master for `-h` and `man`Martin Nordholts
2022-05-09release-checklist.md: Recommend `--locked` for `cargo install`Martin Nordholts
So that the command will not fail if you are using the MSRV toolchain and the latest version of a dependency happens to have a higher MSRV than we do.
2022-05-09release-checklist.md: Recommend a single git grep command for MSRVMartin Nordholts
That filters out irrelevant hits in CHANGELOG.md and tests/.
2022-05-09CHANGELOG.md: Clean up and tweakMartin Nordholts
2022-05-07Bump to syntect 5.0.0 to e.g. start lazy-loading syntaxes (#2181)Martin Nordholts
* Bump to syntect 5.0.0 to e.g. start lazy-loading themes Closes #915 Closes #951 Closes #1846 Closes #1854 * Typo fix formated -> formatted * Update CHANGELOG.md
2022-05-06Simplify release-checklist.md by printing `-h`, `--help` and `man` in CI (#2183)Martin Nordholts
* Simplify release-checklist.md by printing `-h`, `--help` and `man` in CI Note that we run `find . -name bat.1` before we run anything with `--all-features`, because `--all-features` is considered a separate target, and so we will get a different (but identical) `bat.1`. For example, we might have these: ./target/debug/build/bat-218e9538b4996215/out/assets/manual/bat.1 ./target/debug/build/bat-89d6f56802af023f/out/assets/manual/bat.1 By showing the man page earlier, there is only one `bat.1` to pick from. * Use plain `man $(find . -name bat.1)`
2022-05-05Bump assets/syntaxes/02_Extra/Zig from `87ecbca` to `1a4a384` (#2136)dependabot[bot]
* Bump assets/syntaxes/02_Extra/Zig from `87ecbca` to `1a4a384` Bumps [assets/syntaxes/02_Extra/Zig](https://github.com/ziglang/sublime-zig-language) from `87ecbca` to `1a4a384`. - [Release notes](https://github.com/ziglang/sublime-zig-language/releases) - [Commits](https://github.com/ziglang/sublime-zig-language/compare/87ecbcae6fb5718369ce3bb3472ca0b2634e78e6...1a4a38445fec495817625bafbeb01e79c44abcba) --- updated-dependencies: - dependency-name: assets/syntaxes/02_Extra/Zig dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Update tests/syntax-tests/highlighted/Zig/example.zig and CHANGELOG.md Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Martin Nordholts <enselic@gmail.com>
2022-05-05Add `--relative` to `batdiff` in README.md (#2172)Tejinder Singh
2022-05-05printer.rs: De-duplicate code to highlight long linesMartin Nordholts
We do this to only have one invocation of `highlighter.highlight(...)` so we don't need to change to `highlighter.highlight_line(...)` in two places in #2181.
2022-05-05Limit nix featuresRyan Zoeller
This removes memoffset as an indirect dependency, and should slightly decrease build times.
2022-05-04Add a --style=default option (#2119)Isaac Horvath
* Add a --style=default option * Added --style=default test and CHANGELOG entry * Format CHANGELOG.md options with quotes Co-authored-by: Martin Nordholts <enselic@gmail.com> * Update help text for '--style' * Make --style=default the default option * Update style descriptions: "basic" -> "recommended" * Add integration test for --style=default as default * Update clap long help for --style
2022-05-04Bump assets/syntaxes/02_Extra/Nginx from `15a1db1` to `65f5a63`dependabot[bot]
Bumps [assets/syntaxes/02_Extra/Nginx](https://github.com/brandonwamboldt/sublime-nginx) from `15a1db1` to `65f5a63`. - [Release notes](https://github.com/brandonwamboldt/sublime-nginx/releases) - [Commits](https://github.com/brandonwamboldt/sublime-nginx/compare/15a1db15106fb668b3b1396a725ab002a8ef286c...65f5a63c0d1760c5db2264e50e3b14a7a4567cc0) --- updated-dependencies: - dependency-name: assets/syntaxes/02_Extra/Nginx dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
2022-05-04Skip syntax highlighting for long lines (#2165)Keith Hall
* Skip highlighting for long lines * Run cargo fmt, update changelog
2022-05-04Add support for BusyBox less as pager (#2162)Nathan Fisher
* Add support for BusyBox less as pager * Run tests/syntax-tests/update.sh to update tests * Address reviewer's concerns with pull request * Revert all changes in `test` directory * Minimize overall diff size * Detect busybox from separate helper function * Pass equivalent options to BusyBox from same code by changing from long to short options * Remove redundant `if` statement from previous commit Add test for invalid utf-8 Add `parse_less_version_busybox` to test for invalid program Add commenting around short options
2022-05-04Bump nix from 0.23.1 to 0.24.1dependabot[bot]
Bumps [nix](https://github.com/nix-rust/nix) from 0.23.1 to 0.24.1. - [Release notes](https://github.com/nix-rust/nix/releases) - [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md) - [Commits](https://github.com/nix-rust/nix/compare/v0.23.1...v0.24.1) --- updated-dependencies: - dependency-name: nix dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2022-05-04Bump flate2 from 1.0.22 to 1.0.23dependabot[bot]
Bumps [flate2](https://github.com/rust-lang/flate2-rs) from 1.0.22 to 1.0.23. - [Release notes](https://github.com/rust-lang/flate2-rs/releases) - [Commits](https://github.com/rust-lang/flate2-rs/compare/1.0.22...1.0.23) --- updated-dependencies: - dependency-name: flate2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-05-04Bump thiserror from 1.0.30 to 1.0.31dependabot[bot]
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.30 to 1.0.31. - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](https://github.com/dtolnay/thiserror/compare/1.0.30...1.0.31) --- updated-dependencies: - dependency-name: thiserror dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-05-04Run `cargo clippy --fix --all-targets --all-features` with Rust 1.60Martin Nordholts
Clippy in the newly released Rust 1.60 found some new lints. Conveniently, all of them were fixable with `--fix`. By fixing these lints it becomes easier for us and others to see when new lints are introduced.
2022-04-27Add mapping for Unix mail spool (#2156)cyqsimon
2022-04-27Bump assets/syntaxes/02_Extra/Fish from `cd95616` to `98316d4`dependabot[bot]
Bumps [assets/syntaxes/02_Extra/Fish](https://github.com/Phidica/sublime-fish) from `cd95616` to `98316d4`. - [Release notes](https://github.com/Phidica/sublime-fish/releases) - [Commits](https://github.com/Phidica/sublime-fish/compare/cd95616df5c73da5ce2dfe548892b4571040f9dd...98316d4332936f74babb51cb56161410ae9d6e2c) --- updated-dependencies: - dependency-name: assets/syntaxes/02_Extra/Fish dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
2022-04-26Syntax: add cmd-help (#2148)Víctor González Prieto
* Add cmd-help syntax To highlight command --help messages. * README.md: mention help message highlighting * README.md: edit help message highlighting
2022-04-20bug_report.md template: Explicitly ask for stepsMartin Nordholts
2022-04-20bug_report.md template: Mention some already reported bugsMartin Nordholts
2022-04-02Print info about custom assets in --diagnosticsMartin Nordholts
2022-04-02Lock regex crate at min 1.5.5 for CVE-2022-24713Martin Nordholts
Cargo.lock already specifies 1.5.5, but we should also do it in Cargo.toml.
2022-04-02Update CHANGELOG.mdacheronfail
Co-authored-by: Martin Nordholts <enselic@gmail.com>
2022-04-02Allow configuring show_nonprintable from PrettyPrinteracheronfail
2022-04-02Bump git2 from 0.14.1 to 0.14.2dependabot[bot]
Bumps [git2](https://github.com/rust-lang/git2-rs) from 0.14.1 to 0.14.2. - [Release notes](https://github.com/rust-lang/git2-rs/releases) - [Commits](https://github.com/rust-lang/git2-rs/compare/git2-curl-0.14.1...0.14.2) --- updated-dependencies: - dependency-name: git2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-04-01Bump once_cell from 1.9.0 to 1.10.0dependabot[bot]
Bumps [once_cell](https://github.com/matklad/once_cell) from 1.9.0 to 1.10.0. - [Release notes](https://github.com/matklad/once_cell/releases) - [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md) - [Commits](https://github.com/matklad/once_cell/compare/v1.9.0...v1.10.0) --- updated-dependencies: - dependency-name: once_cell dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2022-04-01Bump regex from 1.5.4 to 1.5.5dependabot[bot]
Bumps [regex](https://github.com/rust-lang/regex) from 1.5.4 to 1.5.5. - [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.5.4...1.5.5) --- updated-dependencies: - dependency-name: regex dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-04-01Bump semver from 1.0.6 to 1.0.7dependabot[bot]
Bumps [semver](https://github.com/dtolnay/semver) from 1.0.6 to 1.0.7. - [Release notes](https://github.com/dtolnay/semver/releases) - [Commits](https://github.com/dtolnay/semver/compare/1.0.6...1.0.7) --- updated-dependencies: - dependency-name: semver dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-03-28Bump assets/syntaxes/02_Extra/Fish from `2c254cc` to `cd95616`dependabot[bot]
Bumps [assets/syntaxes/02_Extra/Fish](https://github.com/Phidica/sublime-fish) from `2c254cc` to `cd95616`. - [Release notes](https://github.com/Phidica/sublime-fish/releases) - [Commits](https://github.com/Phidica/sublime-fish/compare/2c254cc8512d53b7af306e4379fc9744ee5b4aee...cd95616df5c73da5ce2dfe548892b4571040f9dd) --- updated-dependencies: - dependency-name: assets/syntaxes/02_Extra/Fish dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
2022-03-23Merge pull request #2127 from sharkdp/log_syntax_2123Keith Hall
Syntax: [Log] highlight escape characters in double quoted strings