Commit Graph

2094 Commits

Author SHA1 Message Date
Dan Davison
b134e704fc Shorten workflow name 2023-08-12 20:39:25 -04:00
Qwerty-133
2a9afbe815
Remove the navigation setting from themes. (#1503) 2023-08-12 20:32:40 -04:00
Sondeyy
e0eef7decc
Improve binary file added output (#1502)
* added binary file cases tests

* add binary file cases handling

* remove unnecessary return and comma
2023-08-05 14:05:09 -04:00
Dan Davison
b0aed26ed7 Add documentation for browsing themes. 2023-08-01 08:02:42 -04:00
Dan Davison
0608765f40 Update documentation regarding BAT_PAGER
Ref #1467
2023-07-29 19:38:11 -04:00
ippsav
3c55764215
Fix issue where pager would be set to more or most (#1494)
fix pager env in case of `more/most`
2023-07-29 19:25:02 -04:00
Dan Davison
fdaf4bfe1d Revert "Refactor subcommand handling (#1467)"
Fixes #1475

This reverts commit 8d14a1eba3.
2023-07-18 22:00:30 -07:00
Thomas Otto
278cce0e91
Bump clap to v4.3.14 and regenerate Cargo.lock (#1472) 2023-07-17 16:19:44 -05:00
Dan Davison
8d14a1eba3
Refactor subcommand handling (#1467) 2023-07-10 10:12:07 -04:00
nickelc
915662f5da
Replace usage of the atty crate with std::io::IsTerminal trait (#1465)
Rust 1.70 stabilized the `IsTerminal` trait and the newest version of
`grep-cli` crate depending on it, makes it possible to remove the
unmaintained `atty` crate from the build.

```
Crate:     atty
Version:   0.2.14
Warning:   unsound
Title:     Potential unaligned read
Date:      2021-07-04
ID:        RUSTSEC-2021-0145
URL:       https://rustsec.org/advisories/RUSTSEC-2021-0145
```
2023-07-08 18:00:36 -04:00
Pascal H
ff5fd061f4
Fix alignment when author name contains unicode accent modifiers (#1456) 2023-06-23 09:38:40 -04:00
Dan Davison
24c29c37d3 Add link to mellow-barbet terminal config docs 2023-06-21 12:53:44 -04:00
Rohit K Viswanath
c05f220ddc
Add mellow-barbet theme (#1452)
Add a new theme based on the mellow color scheme: https://kvrohit.dev/mellow
2023-06-21 12:52:18 -04:00
Dan Davison
953af74452
Update bat (#1453) 2023-06-21 10:04:32 -04:00
Dan Davison
01f92de6df Delete notes about unsupported GIT_CONFIG_GLOBAL env var
Should be supported by recent git2
2023-06-03 12:44:05 -04:00
dependabot[bot]
4ab08caf17
Bump serde from 1.0.152 to 1.0.163 (#1415)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.152 to 1.0.163.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.152...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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-03 12:43:56 -04:00
dependabot[bot]
79e4ba9ba0
Bump serde_json from 1.0.93 to 1.0.96 (#1391)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.93 to 1.0.96.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.93...v1.0.96)

---
updated-dependencies:
- dependency-name: serde_json
  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>
2023-06-03 10:44:23 -04:00
dependabot[bot]
aa99ea7a49
Bump clap from 4.1.8 to 4.1.14 (#1375)
Bumps [clap](https://github.com/clap-rs/clap) from 4.1.8 to 4.1.14.
- [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.1.8...v4.1.14)

---
updated-dependencies:
- dependency-name: clap
  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>
2023-06-03 10:44:01 -04:00
dependabot[bot]
e8d4e74c2c
Bump dirs from 4.0.0 to 5.0.1 (#1407)
Bumps [dirs](https://github.com/soc/dirs-rs) from 4.0.0 to 5.0.1.
- [Release notes](https://github.com/soc/dirs-rs/releases)
- [Commits](https://github.com/soc/dirs-rs/commits)

---
updated-dependencies:
- dependency-name: dirs
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-03 10:42:04 -04:00
dependabot[bot]
99451ead76
Bump sysinfo from 0.28.2 to 0.29.0 (#1412)
Bumps [sysinfo](https://github.com/GuillaumeGomez/sysinfo) from 0.28.2 to 0.29.0.
- [Changelog](https://github.com/GuillaumeGomez/sysinfo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/GuillaumeGomez/sysinfo/commits)

---
updated-dependencies:
- dependency-name: sysinfo
  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>
2023-06-03 10:41:03 -04:00
dependabot[bot]
09131c8a29
Bump palette from 0.6.1 to 0.7.2 (#1420)
Bumps [palette](https://github.com/Ogeon/palette) from 0.6.1 to 0.7.2.
- [Changelog](https://github.com/Ogeon/palette/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Ogeon/palette/compare/0.6.1...0.7.2)

---
updated-dependencies:
- dependency-name: palette
  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>
2023-06-03 10:38:59 -04:00
dependabot[bot]
03979ae954
Bump chrono from 0.4.23 to 0.4.26 (#1426)
Bumps [chrono](https://github.com/chronotope/chrono) from 0.4.23 to 0.4.26.
- [Release notes](https://github.com/chronotope/chrono/releases)
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md)
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.23...v0.4.26)

---
updated-dependencies:
- dependency-name: chrono
  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>
2023-06-03 10:38:39 -04:00
dependabot[bot]
1c37bfa85b
Bump git2 from 0.16.1 to 0.17.2 (#1422)
Bumps [git2](https://github.com/rust-lang/git2-rs) from 0.16.1 to 0.17.2.
- [Changelog](https://github.com/rust-lang/git2-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/git2-rs/compare/0.16.1...0.17.2)

---
updated-dependencies:
- dependency-name: git2
  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>
2023-06-03 10:38:24 -04:00
Dan Davison
03f1569a9a Bump version 2023-06-03 10:04:09 -04:00
Dan Davison
3819e94263 Drop grep-header-style option 2023-06-03 10:00:50 -04:00
Dan Davison
a28231aebc Honor grep-header-decoration-style for ripgrep output 2023-06-03 08:05:11 -04:00
Dan Davison
481d3c1a26 Write directly, not by appending to output buffer
This was a bug when a box decoration was subsequently drawn since the
decoration enclosed pending content in the output buffer.
2023-06-03 08:05:11 -04:00
nickelc
d327bad4d5
Fix typo in publishing build job & restore cross-compilation (#1430)
* Fix typo in publishing build job

This prevented the cross-compilation targets from using the `cross`
binary for the compilation.

The script evaluated with `${{ matrix.job.cross }}` to:
```
  if [[ "" == "true" ]]; then
    cross build --release --target x86_64-unknown-linux-musl
  else
    cargo build --release --target x86_64-unknown-linux-musl
  fi
```

The correct result for `${{ matrix.job.use-cross }}` is:
```
  if [[ "true" == "true" ]]; then
    cross build --release --target x86_64-unknown-linux-musl
  else
    cargo build --release --target x86_64-unknown-linux-musl
  fi
```

* Restore previously failed cross-compilation targets

- Revert "Delete the remaining failing cross-compilation target"

  This reverts commit 2937f3277a.

- Revert "Delete another failing cross-compilation target"

  This reverts commit 4af8adf580.

- Revert "Delete i686-unknown-linux-gnu job"

  This reverts commit eebddddb0a.

- Revert "Delete arm-unknown-linux-gnueabihf job"

  This reverts commit 9a2fa348eb.
2023-06-03 06:44:29 -04:00
Dan Davison
dda9a87421 Increase number of characters shown in submodule hashes
Fixes #1408
2023-06-02 19:40:38 -07:00
Dan Davison
546607fba3 Bump version 2023-06-02 19:21:43 -04:00
Dan Davison
2937f3277a Delete the remaining failing cross-compilation target
https://github.com/dandavison/delta/actions/runs/5160503594/jobs/9296619624
2023-06-02 19:20:45 -04:00
Dan Davison
4cd97cd248 Bump version 2023-06-02 19:15:55 -04:00
Dan Davison
4af8adf580 Delete another failing cross-compilation target
https://github.com/dandavison/delta/actions/runs/5160467636/jobs/9296549493
2023-06-02 19:15:00 -04:00
Dan Davison
4597dc4c6b Bump versions 2023-06-02 19:08:43 -04:00
Dan Davison
eebddddb0a Delete i686-unknown-linux-gnu job
Build failure

https://github.com/dandavison/delta/actions/runs/5160397593/jobs/9296411455
2023-06-02 19:03:02 -04:00
Dan Davison
0662638507 Bump version 2023-06-02 18:57:07 -04:00
Dan Davison
9a2fa348eb Delete arm-unknown-linux-gnueabihf job
error occurred: Failed to find tool. Is `arm-linux-gnueabihf-gcc`
installed?

https://github.com/dandavison/delta/actions/runs/5160233910/jobs/9296084928
2023-06-02 18:47:21 -04:00
Dan Davison
22f40da244 Update --help output 2023-06-02 18:43:38 -04:00
Dan Davison
9072d86111 Update --help output in manual 2023-06-02 18:43:38 -04:00
Dan Davison
52e3c5a536 Bump version in Cargo.lock 2023-06-02 18:43:38 -04:00
Dan Davison
5d29acbd7a Bump version 2023-06-02 18:22:03 -04:00
Dan Davison
83ca127e9e Introduce grep-output-type option: ripgrep or classic 2023-06-02 14:36:30 -07:00
Dan Davison
46e44d3ba9 Refactor grep handler 2023-06-02 14:36:30 -07:00
mataha
25df80500a
manual: fix link to using delta on Windows (#1428)
Self-explanatory.
2023-05-31 13:54:50 -04:00
Thomas Otto
139cdb9656
Misc tab refactoring (#1424)
* Move tabs logic into utils

* Re-use buffer returned by tabs::expand

* Add TabCfg to configure tabs

Use the String from this config for the tab replacement. This avoids
creating a new String for each processed line.

* Avoid unicode segmentation for each line just to remove a prefix

In some code paths no prefix is removed, and in almost all other
cases the prefix is just ascii.

This simplifies a lot of calls.

* Set default tab with to 8

Editors like vim, emacs, nano and most terminal emulators set
this value as the default tab display width.
2023-05-31 13:17:18 -04:00
Dan Davison
65418aaa3b Move image 2023-05-25 01:18:59 -04:00
Dan Davison
17686fe632 Update ARCHITECTURE.md 2023-05-24 22:30:54 -04:00
Dan Davison
d92c3ead76 Clean up 2023-05-24 13:50:56 -04:00
William Escande
feec45b5d7
Fix warning highlight for trailing whitespace (#1037)
Fix #137
2023-05-17 07:32:25 -04:00
Thomas Otto
b3ee8400dd
Fix submodule diff parsing (#1413)
Added support for an optional -dirty hash suffix which is present
in `git diff` output when files were changed in a submodule.
2023-05-08 16:49:05 -04:00