Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrap --help output, fix rust 1.80 build #1440

Merged
merged 7 commits into from
Aug 2, 2024

Conversation

th1000s
Copy link
Collaborator

@th1000s th1000s commented Jun 5, 2023

Set clap option max_term_width, so the help output is by default as wide as the terminal or this max value. Then manually wrap the after_long_help() text (only on demand) to the same width using textwrap. Also use matching ansi codes in this section.


Another try to improve deltas --help output, and I finally can use textwrap! But now --version and --help is handled manually. Another possibility would be to manually construct the pieces of claps StyledStr (...which is returned from render_help() and according to dbg!() different from the simple String wrapper? render_help() = StyledStr { pieces: [ (None, "A viewer for git and diff output",), (..)] } ).

CC @tjquillan @nickelc @FGasper

@dandavison
Copy link
Owner

Thanks! I tried this out and it seems like a good improvement to me.

(Tangential: Ultimately I feel that the lengthy man-page style output should be sent into a pager.)

@th1000s
Copy link
Collaborator Author

th1000s commented Jun 5, 2023

Now that --help is handled manually, piping the output into less -R is easy. And clap doesn't seen to support a pager currently.

@dandavison
Copy link
Owner

(There's a formatter error here.)

@th1000s
Copy link
Collaborator Author

th1000s commented Jun 6, 2023

The fmt is fixed, but sending the output into a pager via OutputType::from_mode (now using a lighter PagerCfg) doesn't work, the default pager less just quits after the first page. PagingMode::Always doesn't help, and a default DeltaEnv::init() works fine for the normal delta. However DELTA_PAGER="cat" does display the entire output. strace shows less is started as "/usr/bin/less", ["less", "--RAW-CONTROL-CHARS"] as expected, what am I missing?

@dandavison
Copy link
Owner

Hm. Is it the LESS environment variable supplying additional arguments?

src/cli.rs Outdated
{
write!(&mut writer, "{}", help.ansi()).unwrap();
// dtor?
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It wasn't the writer drop impl/destructor but the one of output_type!

@th1000s
Copy link
Collaborator Author

th1000s commented Jun 7, 2023

Now with pager support, even listens to PAGER etc. env vars for configuration (but not --paging never).

The full---help-output.md markdown is a bit out of sync, but could be generated from then ansi --help output itself. However the one tool for that, term2md, currently removes leading whitespace.

Oh and I found --show-themes is/was already broken.

@dandavison
Copy link
Owner

This one has conflicts for us to resolve. Sorry for letting it drag on.

@th1000s
Copy link
Collaborator Author

th1000s commented Jul 22, 2024

The full help output has to be regenerated (some ansi2md util would help), and I have to check that the big moved textblock in cli.rs is still correct.

If something isn't working correctly, or you have a feature request, please open an issue at https://github.com/dandavison/delta/issues.

For a short help summary, please use delta -h.
"##
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The result of all this looks really nice.

#[derive(Debug, Default)]
pub struct PagerCfg {
pub navigate: bool,
pub show_themes: bool,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should have added a comment on this code...

                if config.show_themes {
                    p.arg("+n");
                }

If you happen to know or discover what the logic is do feel free to add a comment!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+cmd, "specified cmd to be executed", so on start is it as if the user pressed 'n' to continue the search.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right thanks, I'll add that as a comment.

Version(ver) => Some(Version(ver)),
}
}
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks like a nice new organization of the command processing.

Copy link
Owner

@dandavison dandavison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! This will be a big improvement. The paging and new styling of the lengthy sections are really nice.

The full help output has to be regenerated

Just redirecting --help into that file and fixing the enclosing backticks, right -- or is something more needed?

Use new, smaller PagerCfg instead of the full Config, as for
pager output only 3 variables are relevant.

oneshot_write() can be used to write paginated output, usually
before exiting.
Unicode and somewhat ANSI aware, can add indentation (skippable) and
can also skip wrapping lines by using configurable magic prefixes.
Comment on lines 11 to 13

`delta file_1 file_2` is equivalent to `diff -u file_1 file_2 | delta`.
`delta file_1 file_2` is equivalent to `diff -u file_1 file_2 |
delta`.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that is annoying, doesn't fit in 80 lines!

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be happy to lose the underscores; I think I'd debated them once or twice with myself.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, now it fits!

Copy link
Collaborator Author

@th1000s th1000s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, am redirecting --help into the markdown.

Also, I wrote... another wrap function 🙂. This time for the help output because I needed variable indentation.

Comment on lines +867 to +868
Git config

By default, delta takes settings from a section named "delta" in git config
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This mentions the git config, but should also mention how to set pager = delta. This way --help is a stand-alone manual, at least for the basics.

And this quick start section should be right after Arguments:, but that will require some more --help surgery.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This mentions the git config, but should also mention how to set pager = delta. This way --help is a stand-alone manual, at least for the basics.

Agreed. Very happy for you to add this but let me know if you want me to do anything.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is long enough, lets improve the help content in a different PR :)

Tell clap to not wrap output, append `after_long_help()` (with matching
ansi codes in this section), then manually wrap the result.

The help output is now paginated if writing to a terminal.

All code paths flow back to main(), so an invoked pager is properly
waited for (by the OutputType drop impl).
Upgrade "time" (and its dependency chain rooted at "plist"), the previous
version did not build with 1.80.

Tell the new 'unexpected_cfgs' lint that 'tarpaulin_include' is okay

Mark one clippy lint as a false positive
@th1000s
Copy link
Collaborator Author

th1000s commented Jul 30, 2024

Also fixed the rust 1.80 build, note the Cargo.* changes. FTR, the build for the time crate was:

  --> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.31/src/format_description/parse/mod.rs:83:9
   |
83 |     let items = format_items
   |         ^^^^^
...
86 |     Ok(items.into())
   |              ---- type must be known at this point
   |
help: consider giving `items` an explicit type, where the placeholders `_` are specified
   |
83 |     let items: Box<_> = format_items
   |              ++++++++

(Currently, v0.17.0, cargo install delta still works with 1.80, only --locked fails.)

@th1000s th1000s changed the title wrap --help output wrap --help output, fix rust 1.80 build Jul 30, 2024
@dandavison
Copy link
Owner

I've approved this one already; please merge at will!

@dandavison dandavison merged commit 0712274 into dandavison:main Aug 2, 2024
13 checks passed
@dandavison
Copy link
Owner

I think this PR accidentally caused delta -h lines to be wrapped; I've opened #1795.

@ofalvai
Copy link

ofalvai commented Aug 13, 2024

@dandavison would it be possible to cut a new release with this Rust 1.80 fix? It would make it possible to upgrade delta in nixpkgs (NixOS/nixpkgs#332957)

@dandavison
Copy link
Owner

@ofalvai will do! I'll ping here when it's done.

tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Aug 20, 2024
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [dandavison/delta](https://github.com/dandavison/delta) | minor | `0.17.0` -> `0.18.0` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>dandavison/delta (dandavison/delta)</summary>

### [`v0.18.0`](https://github.com/dandavison/delta/releases/tag/0.18.0)

[Compare Source](dandavison/delta@0.17.0...0.18.0)

As usual, tons of excellent contributions, all but one not by me! [@&#8203;th1000s](https://github.com/th1000s) has made a huge number of important and difficult improvements to delta and helped with many issues over the few years since the project started, and so I'm happy to say that he's co-maintaining the project with me nowadays. Thanks to all contributors for the improvements below!

#### What's Changed

-   Link to Repository from Manual by [@&#8203;bash](https://github.com/bash) in dandavison/delta#1657
-   Stop highlighting unchanged whitespace by [@&#8203;phillipwood](https://github.com/phillipwood) in dandavison/delta#1659
-   Add .gitattributes rules for rust files by [@&#8203;phillipwood](https://github.com/phillipwood) in dandavison/delta#1245
-   Repair --default-language, and highlight using full filename by [@&#8203;th1000s](https://github.com/th1000s) in dandavison/delta#1549
-   tests: prevent parallel env var access by [@&#8203;th1000s](https://github.com/th1000s) in dandavison/delta#1681
-   CI: fix macOS build by [@&#8203;th1000s](https://github.com/th1000s) in dandavison/delta#1696
-   Only use `nosort` in bash <4.4 by [@&#8203;martinml](https://github.com/martinml) in dandavison/delta#1683
-   Don't read git files when --no-gitconfig is given + unused variables by [@&#8203;th1000s](https://github.com/th1000s) in dandavison/delta#1728
-   tests: add insta for snapshot testing by [@&#8203;th1000s](https://github.com/th1000s) in dandavison/delta#1739
-   tests: set terminal width to 43 by [@&#8203;th1000s](https://github.com/th1000s) in dandavison/delta#1741
-   Fix panic when blame-palette is empty by [@&#8203;thorio](https://github.com/thorio) in dandavison/delta#1737
-   Make relative-paths work with binary files by [@&#8203;th1000s](https://github.com/th1000s) in dandavison/delta#1740
-   Fix github links from master to main by [@&#8203;madeddie](https://github.com/madeddie) in dandavison/delta#1709
-   Update `terminal-colorsaurus` by [@&#8203;bash](https://github.com/bash) in dandavison/delta#1699
-   Make less version >= 633 behave like previous versions wrt. Nerd Fonts by [@&#8203;th1000s](https://github.com/th1000s) in dandavison/delta#1762
-   Update `catppuccin-latte` casing in `LIGHT_SYNTAX_THEMES` list by [@&#8203;injust](https://github.com/injust) in dandavison/delta#1745
-   deps: bump libc from 0.2.153 to 0.2.155 by [@&#8203;wxpppp](https://github.com/wxpppp) in dandavison/delta#1715
-   Add missing `--file-*-label` option to `--navigate` docs by [@&#8203;injust](https://github.com/injust) in dandavison/delta#1744
-   Fix copy-paste typo by [@&#8203;injust](https://github.com/injust) in dandavison/delta#1767
-   Update syntect to 5.2.0 by [@&#8203;timhillgit](https://github.com/timhillgit) in dandavison/delta#1672
-   Disable light mode detection in tests by [@&#8203;bash](https://github.com/bash) in dandavison/delta#1765
-   Add --max-syntax-highlighting-length, set to 400 by [@&#8203;th1000s](https://github.com/th1000s) in dandavison/delta#1746
-   chore: cleanup brew formula file in favor of core tap by [@&#8203;chenrui333](https://github.com/chenrui333) in dandavison/delta#1773
-   wrap --help output, fix rust 1.80 build by [@&#8203;th1000s](https://github.com/th1000s) in dandavison/delta#1440
-   Fix delta-toggle shell script by [@&#8203;dandavison](https://github.com/dandavison) in dandavison/delta#1794
-   Do not wrap short help (-h) output by [@&#8203;th1000s](https://github.com/th1000s) in dandavison/delta#1800
-   Implement --diff-args by [@&#8203;dandavison](https://github.com/dandavison) in dandavison/delta#1697
-   Handle ambiguous diff header, '--- ' can also be present in a minus hunk by [@&#8203;th1000s](https://github.com/th1000s) in dandavison/delta#1787
-   cd: build binaries targeting GNU libc on ubuntu-20.04, not latest by [@&#8203;th1000s](https://github.com/th1000s) in dandavison/delta#1805

#### New Contributors

-   [@&#8203;martinml](https://github.com/martinml) made their first contribution in dandavison/delta#1683
-   [@&#8203;thorio](https://github.com/thorio) made their first contribution in dandavison/delta#1737
-   [@&#8203;madeddie](https://github.com/madeddie) made their first contribution in dandavison/delta#1709
-   [@&#8203;injust](https://github.com/injust) made their first contribution in dandavison/delta#1745
-   [@&#8203;wxpppp](https://github.com/wxpppp) made their first contribution in dandavison/delta#1715
-   [@&#8203;timhillgit](https://github.com/timhillgit) made their first contribution in dandavison/delta#1672
-   [@&#8203;chenrui333](https://github.com/chenrui333) made their first contribution in dandavison/delta#1773

**Full Changelog**: dandavison/delta@0.17.0...0.18.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiXX0=-->
renovate bot referenced this pull request in d-issy/dotfiles Aug 23, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [dandavison/delta](https://togithub.com/dandavison/delta) | minor |
`0.17.0` -> `0.18.0` |

---

### Release Notes

<details>
<summary>dandavison/delta (dandavison/delta)</summary>

###
[`v0.18.0`](https://togithub.com/dandavison/delta/releases/tag/0.18.0)

[Compare
Source](https://togithub.com/dandavison/delta/compare/0.17.0...0.18.0)

As usual, tons of excellent contributions, all but one not by me!
[@&#8203;th1000s](https://togithub.com/th1000s) has made a huge number
of important and difficult improvements to delta and helped with many
issues over the few years since the project started, and so I'm happy to
say that he's co-maintaining the project with me nowadays. Thanks to all
contributors for the improvements below!

#### What's Changed

- Link to Repository from Manual by
[@&#8203;bash](https://togithub.com/bash) in
[https://github.com/dandavison/delta/pull/1657](https://togithub.com/dandavison/delta/pull/1657)
- Stop highlighting unchanged whitespace by
[@&#8203;phillipwood](https://togithub.com/phillipwood) in
[https://github.com/dandavison/delta/pull/1659](https://togithub.com/dandavison/delta/pull/1659)
- Add .gitattributes rules for rust files by
[@&#8203;phillipwood](https://togithub.com/phillipwood) in
[https://github.com/dandavison/delta/pull/1245](https://togithub.com/dandavison/delta/pull/1245)
- Repair --default-language, and highlight using full filename by
[@&#8203;th1000s](https://togithub.com/th1000s) in
[https://github.com/dandavison/delta/pull/1549](https://togithub.com/dandavison/delta/pull/1549)
- tests: prevent parallel env var access by
[@&#8203;th1000s](https://togithub.com/th1000s) in
[https://github.com/dandavison/delta/pull/1681](https://togithub.com/dandavison/delta/pull/1681)
- CI: fix macOS build by [@&#8203;th1000s](https://togithub.com/th1000s)
in
[https://github.com/dandavison/delta/pull/1696](https://togithub.com/dandavison/delta/pull/1696)
- Only use `nosort` in bash <4.4 by
[@&#8203;martinml](https://togithub.com/martinml) in
[https://github.com/dandavison/delta/pull/1683](https://togithub.com/dandavison/delta/pull/1683)
- Don't read git files when --no-gitconfig is given + unused variables
by [@&#8203;th1000s](https://togithub.com/th1000s) in
[https://github.com/dandavison/delta/pull/1728](https://togithub.com/dandavison/delta/pull/1728)
- tests: add insta for snapshot testing by
[@&#8203;th1000s](https://togithub.com/th1000s) in
[https://github.com/dandavison/delta/pull/1739](https://togithub.com/dandavison/delta/pull/1739)
- tests: set terminal width to 43 by
[@&#8203;th1000s](https://togithub.com/th1000s) in
[https://github.com/dandavison/delta/pull/1741](https://togithub.com/dandavison/delta/pull/1741)
- Fix panic when blame-palette is empty by
[@&#8203;thorio](https://togithub.com/thorio) in
[https://github.com/dandavison/delta/pull/1737](https://togithub.com/dandavison/delta/pull/1737)
- Make relative-paths work with binary files by
[@&#8203;th1000s](https://togithub.com/th1000s) in
[https://github.com/dandavison/delta/pull/1740](https://togithub.com/dandavison/delta/pull/1740)
- Fix github links from master to main by
[@&#8203;madeddie](https://togithub.com/madeddie) in
[https://github.com/dandavison/delta/pull/1709](https://togithub.com/dandavison/delta/pull/1709)
- Update `terminal-colorsaurus` by
[@&#8203;bash](https://togithub.com/bash) in
[https://github.com/dandavison/delta/pull/1699](https://togithub.com/dandavison/delta/pull/1699)
- Make less version >= 633 behave like previous versions wrt. Nerd Fonts
by [@&#8203;th1000s](https://togithub.com/th1000s) in
[https://github.com/dandavison/delta/pull/1762](https://togithub.com/dandavison/delta/pull/1762)
- Update `catppuccin-latte` casing in `LIGHT_SYNTAX_THEMES` list by
[@&#8203;injust](https://togithub.com/injust) in
[https://github.com/dandavison/delta/pull/1745](https://togithub.com/dandavison/delta/pull/1745)
- deps: bump libc from 0.2.153 to 0.2.155 by
[@&#8203;wxpppp](https://togithub.com/wxpppp) in
[https://github.com/dandavison/delta/pull/1715](https://togithub.com/dandavison/delta/pull/1715)
- Add missing `--file-*-label` option to `--navigate` docs by
[@&#8203;injust](https://togithub.com/injust) in
[https://github.com/dandavison/delta/pull/1744](https://togithub.com/dandavison/delta/pull/1744)
- Fix copy-paste typo by [@&#8203;injust](https://togithub.com/injust)
in
[https://github.com/dandavison/delta/pull/1767](https://togithub.com/dandavison/delta/pull/1767)
- Update syntect to 5.2.0 by
[@&#8203;timhillgit](https://togithub.com/timhillgit) in
[https://github.com/dandavison/delta/pull/1672](https://togithub.com/dandavison/delta/pull/1672)
- Disable light mode detection in tests by
[@&#8203;bash](https://togithub.com/bash) in
[https://github.com/dandavison/delta/pull/1765](https://togithub.com/dandavison/delta/pull/1765)
- Add --max-syntax-highlighting-length, set to 400 by
[@&#8203;th1000s](https://togithub.com/th1000s) in
[https://github.com/dandavison/delta/pull/1746](https://togithub.com/dandavison/delta/pull/1746)
- chore: cleanup brew formula file in favor of core tap by
[@&#8203;chenrui333](https://togithub.com/chenrui333) in
[https://github.com/dandavison/delta/pull/1773](https://togithub.com/dandavison/delta/pull/1773)
- wrap --help output, fix rust 1.80 build by
[@&#8203;th1000s](https://togithub.com/th1000s) in
[https://github.com/dandavison/delta/pull/1440](https://togithub.com/dandavison/delta/pull/1440)
- Fix delta-toggle shell script by
[@&#8203;dandavison](https://togithub.com/dandavison) in
[https://github.com/dandavison/delta/pull/1794](https://togithub.com/dandavison/delta/pull/1794)
- Do not wrap short help (-h) output by
[@&#8203;th1000s](https://togithub.com/th1000s) in
[https://github.com/dandavison/delta/pull/1800](https://togithub.com/dandavison/delta/pull/1800)
- Implement --diff-args by
[@&#8203;dandavison](https://togithub.com/dandavison) in
[https://github.com/dandavison/delta/pull/1697](https://togithub.com/dandavison/delta/pull/1697)
- Handle ambiguous diff header, '--- ' can also be present in a minus
hunk by [@&#8203;th1000s](https://togithub.com/th1000s) in
[https://github.com/dandavison/delta/pull/1787](https://togithub.com/dandavison/delta/pull/1787)
- cd: build binaries targeting GNU libc on ubuntu-20.04, not latest by
[@&#8203;th1000s](https://togithub.com/th1000s) in
[https://github.com/dandavison/delta/pull/1805](https://togithub.com/dandavison/delta/pull/1805)

#### New Contributors

- [@&#8203;martinml](https://togithub.com/martinml) made their first
contribution in
[https://github.com/dandavison/delta/pull/1683](https://togithub.com/dandavison/delta/pull/1683)
- [@&#8203;thorio](https://togithub.com/thorio) made their first
contribution in
[https://github.com/dandavison/delta/pull/1737](https://togithub.com/dandavison/delta/pull/1737)
- [@&#8203;madeddie](https://togithub.com/madeddie) made their first
contribution in
[https://github.com/dandavison/delta/pull/1709](https://togithub.com/dandavison/delta/pull/1709)
- [@&#8203;injust](https://togithub.com/injust) made their first
contribution in
[https://github.com/dandavison/delta/pull/1745](https://togithub.com/dandavison/delta/pull/1745)
- [@&#8203;wxpppp](https://togithub.com/wxpppp) made their first
contribution in
[https://github.com/dandavison/delta/pull/1715](https://togithub.com/dandavison/delta/pull/1715)
- [@&#8203;timhillgit](https://togithub.com/timhillgit) made their first
contribution in
[https://github.com/dandavison/delta/pull/1672](https://togithub.com/dandavison/delta/pull/1672)
- [@&#8203;chenrui333](https://togithub.com/chenrui333) made their first
contribution in
[https://github.com/dandavison/delta/pull/1773](https://togithub.com/dandavison/delta/pull/1773)

**Full Changelog**:
dandavison/delta@0.17.0...0.18.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job log](https://developer.mend.io/github/d-issy/dotfiles).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
izumin5210 referenced this pull request in izumin5210/dotfiles Aug 31, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [dandavison/delta](https://togithub.com/dandavison/delta) | minor |
`0.17.0` -> `0.18.0` |

---

### Release Notes

<details>
<summary>dandavison/delta (dandavison/delta)</summary>

###
[`v0.18.0`](https://togithub.com/dandavison/delta/releases/tag/0.18.0)

[Compare
Source](https://togithub.com/dandavison/delta/compare/0.17.0...0.18.0)

As usual, tons of excellent contributions, all but one not by me!
[@&#8203;th1000s](https://togithub.com/th1000s) has made a huge number
of important and difficult improvements to delta and helped with many
issues over the few years since the project started, and so I'm happy to
say that he's co-maintaining the project with me nowadays. Thanks to all
contributors for the improvements below!

#### What's Changed

- Link to Repository from Manual by
[@&#8203;bash](https://togithub.com/bash) in
[https://github.com/dandavison/delta/pull/1657](https://togithub.com/dandavison/delta/pull/1657)
- Stop highlighting unchanged whitespace by
[@&#8203;phillipwood](https://togithub.com/phillipwood) in
[https://github.com/dandavison/delta/pull/1659](https://togithub.com/dandavison/delta/pull/1659)
- Add .gitattributes rules for rust files by
[@&#8203;phillipwood](https://togithub.com/phillipwood) in
[https://github.com/dandavison/delta/pull/1245](https://togithub.com/dandavison/delta/pull/1245)
- Repair --default-language, and highlight using full filename by
[@&#8203;th1000s](https://togithub.com/th1000s) in
[https://github.com/dandavison/delta/pull/1549](https://togithub.com/dandavison/delta/pull/1549)
- tests: prevent parallel env var access by
[@&#8203;th1000s](https://togithub.com/th1000s) in
[https://github.com/dandavison/delta/pull/1681](https://togithub.com/dandavison/delta/pull/1681)
- CI: fix macOS build by [@&#8203;th1000s](https://togithub.com/th1000s)
in
[https://github.com/dandavison/delta/pull/1696](https://togithub.com/dandavison/delta/pull/1696)
- Only use `nosort` in bash <4.4 by
[@&#8203;martinml](https://togithub.com/martinml) in
[https://github.com/dandavison/delta/pull/1683](https://togithub.com/dandavison/delta/pull/1683)
- Don't read git files when --no-gitconfig is given + unused variables
by [@&#8203;th1000s](https://togithub.com/th1000s) in
[https://github.com/dandavison/delta/pull/1728](https://togithub.com/dandavison/delta/pull/1728)
- tests: add insta for snapshot testing by
[@&#8203;th1000s](https://togithub.com/th1000s) in
[https://github.com/dandavison/delta/pull/1739](https://togithub.com/dandavison/delta/pull/1739)
- tests: set terminal width to 43 by
[@&#8203;th1000s](https://togithub.com/th1000s) in
[https://github.com/dandavison/delta/pull/1741](https://togithub.com/dandavison/delta/pull/1741)
- Fix panic when blame-palette is empty by
[@&#8203;thorio](https://togithub.com/thorio) in
[https://github.com/dandavison/delta/pull/1737](https://togithub.com/dandavison/delta/pull/1737)
- Make relative-paths work with binary files by
[@&#8203;th1000s](https://togithub.com/th1000s) in
[https://github.com/dandavison/delta/pull/1740](https://togithub.com/dandavison/delta/pull/1740)
- Fix github links from master to main by
[@&#8203;madeddie](https://togithub.com/madeddie) in
[https://github.com/dandavison/delta/pull/1709](https://togithub.com/dandavison/delta/pull/1709)
- Update `terminal-colorsaurus` by
[@&#8203;bash](https://togithub.com/bash) in
[https://github.com/dandavison/delta/pull/1699](https://togithub.com/dandavison/delta/pull/1699)
- Make less version >= 633 behave like previous versions wrt. Nerd Fonts
by [@&#8203;th1000s](https://togithub.com/th1000s) in
[https://github.com/dandavison/delta/pull/1762](https://togithub.com/dandavison/delta/pull/1762)
- Update `catppuccin-latte` casing in `LIGHT_SYNTAX_THEMES` list by
[@&#8203;injust](https://togithub.com/injust) in
[https://github.com/dandavison/delta/pull/1745](https://togithub.com/dandavison/delta/pull/1745)
- deps: bump libc from 0.2.153 to 0.2.155 by
[@&#8203;wxpppp](https://togithub.com/wxpppp) in
[https://github.com/dandavison/delta/pull/1715](https://togithub.com/dandavison/delta/pull/1715)
- Add missing `--file-*-label` option to `--navigate` docs by
[@&#8203;injust](https://togithub.com/injust) in
[https://github.com/dandavison/delta/pull/1744](https://togithub.com/dandavison/delta/pull/1744)
- Fix copy-paste typo by [@&#8203;injust](https://togithub.com/injust)
in
[https://github.com/dandavison/delta/pull/1767](https://togithub.com/dandavison/delta/pull/1767)
- Update syntect to 5.2.0 by
[@&#8203;timhillgit](https://togithub.com/timhillgit) in
[https://github.com/dandavison/delta/pull/1672](https://togithub.com/dandavison/delta/pull/1672)
- Disable light mode detection in tests by
[@&#8203;bash](https://togithub.com/bash) in
[https://github.com/dandavison/delta/pull/1765](https://togithub.com/dandavison/delta/pull/1765)
- Add --max-syntax-highlighting-length, set to 400 by
[@&#8203;th1000s](https://togithub.com/th1000s) in
[https://github.com/dandavison/delta/pull/1746](https://togithub.com/dandavison/delta/pull/1746)
- chore: cleanup brew formula file in favor of core tap by
[@&#8203;chenrui333](https://togithub.com/chenrui333) in
[https://github.com/dandavison/delta/pull/1773](https://togithub.com/dandavison/delta/pull/1773)
- wrap --help output, fix rust 1.80 build by
[@&#8203;th1000s](https://togithub.com/th1000s) in
[https://github.com/dandavison/delta/pull/1440](https://togithub.com/dandavison/delta/pull/1440)
- Fix delta-toggle shell script by
[@&#8203;dandavison](https://togithub.com/dandavison) in
[https://github.com/dandavison/delta/pull/1794](https://togithub.com/dandavison/delta/pull/1794)
- Do not wrap short help (-h) output by
[@&#8203;th1000s](https://togithub.com/th1000s) in
[https://github.com/dandavison/delta/pull/1800](https://togithub.com/dandavison/delta/pull/1800)
- Implement --diff-args by
[@&#8203;dandavison](https://togithub.com/dandavison) in
[https://github.com/dandavison/delta/pull/1697](https://togithub.com/dandavison/delta/pull/1697)
- Handle ambiguous diff header, '--- ' can also be present in a minus
hunk by [@&#8203;th1000s](https://togithub.com/th1000s) in
[https://github.com/dandavison/delta/pull/1787](https://togithub.com/dandavison/delta/pull/1787)
- cd: build binaries targeting GNU libc on ubuntu-20.04, not latest by
[@&#8203;th1000s](https://togithub.com/th1000s) in
[https://github.com/dandavison/delta/pull/1805](https://togithub.com/dandavison/delta/pull/1805)

#### New Contributors

- [@&#8203;martinml](https://togithub.com/martinml) made their first
contribution in
[https://github.com/dandavison/delta/pull/1683](https://togithub.com/dandavison/delta/pull/1683)
- [@&#8203;thorio](https://togithub.com/thorio) made their first
contribution in
[https://github.com/dandavison/delta/pull/1737](https://togithub.com/dandavison/delta/pull/1737)
- [@&#8203;madeddie](https://togithub.com/madeddie) made their first
contribution in
[https://github.com/dandavison/delta/pull/1709](https://togithub.com/dandavison/delta/pull/1709)
- [@&#8203;injust](https://togithub.com/injust) made their first
contribution in
[https://github.com/dandavison/delta/pull/1745](https://togithub.com/dandavison/delta/pull/1745)
- [@&#8203;wxpppp](https://togithub.com/wxpppp) made their first
contribution in
[https://github.com/dandavison/delta/pull/1715](https://togithub.com/dandavison/delta/pull/1715)
- [@&#8203;timhillgit](https://togithub.com/timhillgit) made their first
contribution in
[https://github.com/dandavison/delta/pull/1672](https://togithub.com/dandavison/delta/pull/1672)
- [@&#8203;chenrui333](https://togithub.com/chenrui333) made their first
contribution in
[https://github.com/dandavison/delta/pull/1773](https://togithub.com/dandavison/delta/pull/1773)

**Full Changelog**:
dandavison/delta@0.17.0...0.18.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/izumin5210/dotfiles).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: izumin5210-update-aqua-checksum[bot] <169593670+izumin5210-update-aqua-checksum[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants