summaryrefslogtreecommitdiffstats
path: root/src/utils
AgeCommit message (Collapse)Author
2021-12-09Query fewer processes when searching for the parentprocsThomas Otto
This query now happens for more invocation types, so speed it up. Call `refresh_process()` only on pids numerically close to the one of delta itself.
2021-12-07Disable last-resort process tree inspectionDan Davison
See #824 in which some users are reporting very slow performance. Fixes #824
2021-12-07Fixed some test clippysThomas Otto
Note that currently `cargo clippy --tests` is not checked by the CI runs
2021-12-04Silence warningDan Davison
2021-12-02Fix new v1.57 clippy warnings0.10.3Thomas Otto
2021-11-29Do not handle --word-diff or --color-words outputDan Davison
Fixes #440 Ref #152
2021-11-29Refactor: parse command lineDan Davison
2021-11-29Test sibling process detectionThomas Otto
2021-11-29Match process binary case insensitivelyThomas Otto
2021-11-29Clean up FakeParentArgsThomas Otto
Can fake once, for_scope, or with a given list.
2021-11-24Do not recognize grep tools whose output we cannot currently parseDan Davison
Ref #794
2021-11-22Navigate regexp (#782)Wayne Davison
* Allow navigate-regexp value to be overridden. * Don't add an empty label to the navigate_regexp. * Make --hunk-label=str not require --navigate. * Change navigate regexp to navigate regex. * Turn navigate-regex into an Option<String>.
2021-11-22Syntax-highlight `git show $revision:./path/to/file.ext` outputDan Davison
2021-11-22Handle grep outputDan Davison
- 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-22Obtain parent git grep command line optionsDan Davison
2021-11-21Support named colors (#786)Dan Davison
https://docs.rs/palette/0.6.0/palette/named/index.html
2021-11-21Enable faking `extract_args()` parameters from process utils (#783)Thomas Otto
The fake value is valid for exactly one call, the state for this is stored per-thread.
2021-11-18Add ProcessInterfaceThomas Otto
2021-11-18Make process utils more genericThomas Otto
2021-11-15Refactor: utils moduleDan Davison