Commit Graph

1340 Commits

Author SHA1 Message Date
Dan Davison
306238e9f8 Update themes from bat v0.18.0 2021-03-10 21:38:06 -05:00
Dan Davison
7a4be7e5c8 README tweak 2021-03-10 15:06:58 -05:00
Dan Davison
0eeb822d0e
Merge pull request #536 from dandavison/navigate-less-integration-tests
Add navigate/less integration test
2021-03-10 10:05:09 -05:00
Dan Davison
a872caa31c Clippy 2021-03-09 22:09:36 -05:00
Dan Davison
bf04c7b602 Use redirect and chmod instead of install
install didn't work on MacOS:

install: skipping file '/dev/stdin', as it was replaced while being copied
2021-03-09 21:56:26 -05:00
Kriss
b4a36d7886 Update navigate tests 2021-03-09 21:53:45 -05:00
Dan Davison
e72b0ea1da Only do less hist file tricks if the pager appears to be less 2021-03-09 21:53:45 -05:00
Dan Davison
1b90b4e1ba Add navigate/less integration test 2021-03-09 21:53:45 -05:00
Dan Davison
693d71d0bb Append .search line to less history file 2021-03-08 21:31:12 -05:00
Dan Davison
49783434ee Document user color themes collection 2021-03-06 08:26:29 -05:00
clnoll
3ac63d94df
Add 'collared-trogon' theme (#534) 2021-03-06 08:02:17 -05:00
Dan Davison
2619d07fa4
237 navigate improvement (#526)
* Change less invocation under navigate

Thanks @cben

* Don't pass regexp to less

* Append navigate regexp to transient copy of less history file

* Rustfmt

* Store delta less hist file in XDG data directory

* Don't use xdg on Windows

* Fix conditional compilation for Windows

* Get rid of advice not to use keep navigate feature activated
2021-03-05 23:38:54 -05:00
Eugene
4fb55fa820
replace deprecated config options in README (#532)
Remove deprecated *-color options in configuration examples
and replace them with new *-style variants
2021-03-05 14:50:27 -05:00
Dan Davison
9d8e5d6394
Exit if it looks like starting the pager process would never terminate (#531)
Fixes #529
Ref #378
2021-03-04 15:32:49 -05:00
Dan Davison
5de4b05718
Use unwrap_or_else(|| panic!("...")) instead of .expect("...") (#525)
This is a local style rule. IMO .expect("...") doesn't work as the
name for this operation.
2021-03-03 13:59:38 -05:00
Dan Davison
64c93a7f8a
Lint (#527)
* Silence a clippy warning

* Manually fix cargo fmt complaint

https://github.com/dandavison/delta/runs/1918867251?check_suite_focus=true#logs
2021-02-17 10:20:10 -05:00
Dan Davison
3fbb739413 Update README to reflect availability of git -c for delta config
Ref #493, #495
2021-02-05 09:41:01 -05:00
Dan Davison
baec6d3afe Fix reference to non-existent target in Makefile 2021-02-05 09:31:36 -05:00
Dan Davison
e79b8b7514 Bump version in private Homebrew formula 2021-02-05 09:30:40 -05:00
Dan Davison
6aee255c8c Bump version in documentation 2021-02-05 09:29:45 -05:00
Dan Davison
a6c8c0ebad Bump version for release 2021-02-05 09:13:37 -05:00
Dan Davison
3f8fd2c493 Mention delta --help more in README 2021-01-30 14:51:36 -05:00
Dan Davison
1bff1ebf40
Handle tabs in hunk header code fragment (#511)
Fixes #510
2021-01-29 18:21:56 -05:00
dependabot-preview[bot]
0c5384be26
Bump vte from 0.9.0 to 0.10.0 (#486)
* Bump vte from 0.9.0 to 0.10.0

Bumps [vte](https://github.com/alacritty/vte) from 0.9.0 to 0.10.0.
- [Release notes](https://github.com/alacritty/vte/releases)
- [Changelog](https://github.com/alacritty/vte/blob/master/CHANGELOG.md)
- [Commits](https://github.com/alacritty/vte/compare/v0.9.0...v0.10.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Fix vte update

Thanks @ignatenkobrain

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Dan Davison <dandavison7@gmail.com>
2021-01-27 11:51:11 -05:00
dependabot-preview[bot]
6175a2d163
Bump git2 from 0.13.15 to 0.13.17 (#508)
Bumps [git2](https://github.com/rust-lang/git2-rs) from 0.13.15 to 0.13.17.
- [Release notes](https://github.com/rust-lang/git2-rs/releases)
- [Commits](https://github.com/rust-lang/git2-rs/compare/0.13.15...0.13.17)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-01-27 08:34:28 -05:00
dependabot-preview[bot]
b10c6e8946
Bump regex from 1.4.2 to 1.4.3 (#500)
Bumps [regex](https://github.com/rust-lang/regex) from 1.4.2 to 1.4.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.4.2...1.4.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-01-27 08:34:10 -05:00
Gerd Naschenweng
5468fd648d
For Mac mouse-scrolling works by updating less (#490)
* For Mac mouse-scrolling works by updating less

* Update README.md

Co-authored-by: Dan Davison <dandavison7@gmail.com>

* Update README.md

Co-authored-by: Dan Davison <dandavison7@gmail.com>

Co-authored-by: Dan Davison <dandavison7@gmail.com>
2021-01-08 13:44:22 -05:00
Dan Davison
64f8b3a4ee
Clippy (#496) 2021-01-08 13:21:26 -05:00
Dan Davison
3c245e6b55
Merge pull request #495 from dandavison/493-GIT_CONFIG_PARAMETERS
Honor GIT_CONFIG_PARAMETERS env var
2021-01-08 11:36:11 -05:00
Dan Davison
18719057a9 Reorganize git_config module 2021-01-08 10:56:23 -05:00
Dan Davison
dc267979a4 Prevent tests setting env vars from affecting other tests 2021-01-08 10:33:55 -05:00
Dan Davison
ba0d36cb2d Parse GIT_CONFIG_PARAMETERS
When git is invoked as `git -c aaa.bbb=ccc -c ddd.eee=fff` then git
sets the env var GIT_CONFIG_PARAMETERS containing the changed config
entries, so that child processes can honor them.

libgit2 doesn't yet honor the env var: see
https://github.com/libgit2/libgit2/issues/3854.

Fixes #493
Fixes #307
Ref https://github.com/dandavison/magit-delta/issues/13
2021-01-08 10:12:35 -05:00
Dan Davison
60aa0cc147 Add accidentally not-committed file 2021-01-08 10:11:39 -05:00
Dan Davison
42566db2ec Create git_config module 2021-01-08 09:46:29 -05:00
Dan Davison
0cffeae15b Fix --help output for hunk-header-style 2021-01-07 05:01:15 -05:00
Dan Davison
346edb8cca Consistent formatting 2021-01-06 20:16:14 -05:00
Dan Davison
7fcf6b4a60 Update theme instructions 2021-01-05 12:51:40 -05:00
Tor Arne Vestbø
b207a5924a
Add 'villsau' theme 🐑 (#489)
Villsau is and old Norwegian sheep breed, friendly and intelligent.
2021-01-05 12:42:31 -05:00
Dan Davison
02f109f826 Bump version in private Homebrew formula 2021-01-05 10:24:41 -05:00
Dan Davison
9c306d2c7f Bump version in links to executables 2021-01-05 10:23:34 -05:00
Dan Davison
5b627ced94 Recreate Cargo.lock
Ref #487

rm Cargo.lock
cargo build --release
2021-01-04 18:15:50 -05:00
Dan Davison
7d59df5656 Add author attribution to theme 2020-12-31 19:11:45 -05:00
Kriss
22f45b3d5a
add a sample delta theme to themes.gitconfig (#482)
Starting with a first example style, reflecting what I use personally.
2020-12-31 18:52:15 -05:00
Dan Davison
e9ab16457d Add themes.gitconfig 2020-12-31 13:49:21 -05:00
Dan Davison
57d3f65e2e Add styles for file path and line number in hunk header
Fixes #481
2020-12-31 10:31:56 -05:00
Dan Davison
a499d46917 Display line number in hunk header, even with line-numbers active
Fixes https://github.com/dandavison/delta/pull/473#issuecomment-752900940
2020-12-31 06:44:04 -05:00
Dan Davison
933ed2a817 Bump dev version number 2020-12-30 20:02:08 -05:00
Dan Davison
367a3ccdc9 Bump version in private Homebrew formula 2020-12-30 20:01:24 -05:00
Dan Davison
21857468ec Bump version in links to executables 2020-12-30 20:00:07 -05:00
Dan Davison
847a511b40 Update README 2020-12-30 19:59:37 -05:00