delta/Cargo.toml
Dan Davison 07892bc572 Handle grep output
- Handle standard filepath:code and filepath:line_number:code output
  as produced by `git grep`, `rg -H`, `grep -H`, etc (with -n for line
  numbers).

- Retain the match highlighting as produced by the grep tool, and
  expose it in delta's color output styled with grep-match-style.
  (Note that --color=always is needed to retain the color if piping
  into delta, but not for `git grep` when delta is configured as git's
  pager)

- Special handling of -p, and -W options of `git grep`: these display
  the function context in which the matches occur.

- `navigate` keybindings jump between match function contexts under
  `git grep -p` and between matching lines under `git grep -W`.

Thanks @zachriggle for the proposal.
Fixes #769
2021-11-22 13:18:15 -05:00

66 lines
1.4 KiB
TOML

[package]
name = "git-delta"
authors = ["Dan Davison <dandavison7@gmail.com>"]
categories = ["command-line-utilities", "development-tools"]
description = "A syntax-highlighting pager for git"
documentation = "https://github.com/dandavison/delta"
edition = "2018"
homepage = "https://github.com/dandavison/delta"
license = "MIT"
repository = "https://github.com/dandavison/delta"
version = "0.9.2"
[[bin]]
name = "delta"
path = "src/main.rs"
[dependencies]
chrono = "0.4.19"
chrono-humanize = "0.2.1"
ansi_colours = "1.0.4"
ansi_term = "0.12.1"
atty = "0.2.14"
bitflags = "1.3.2"
box_drawing = "0.1.2"
bytelines = "2.2.2"
console = "0.15.0"
ctrlc = "3.2.1"
dirs-next = "2.0.0"
grep-cli = "0.1.6"
itertools = "0.10.1"
lazy_static = "1.4"
palette = "0.6.0"
pathdiff = "0.2.1"
regex = "1.4.6"
serde = { version = "1.0.118", features = ["derive"] }
serde_json = "1.0.70"
shell-words = "1.0.0"
smol_str = "0.1.18"
structopt = "0.3.25"
unicode-segmentation = "1.8.0"
unicode-width = "0.1.9"
vte = "0.10.1"
xdg = "2.4.0"
[dependencies.git2]
version = "0.13.23"
default-features = false
features = []
[dependencies.syntect]
version = "4.6.0"
default-features = false
features = ["parsing", "assets", "yaml-load", "dump-load", "regex-onig"]
[dependencies.sysinfo]
# 0.20.* requires rustc 1.54
version = "0.19.2"
# no default features to disable the use of threads
default-features = false
features = []
[dependencies.error-chain]
version = "0.12.4"
default-features = false
features = []