Age | Commit message (Collapse) | Author |
|
- 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This allows the file1 -> file2 arrow to be configured to whatever
characters the user desires. The default is the same unicode arrow as
before with 2 spaces after it, since this allows someone to remove the
extra spaces that are in the current output.
|
|
When filtering a diff and when directly diffing files/dirs, use the
modified label that is output when interpreting git diffs. This gets
rid of the "comparing:" prefix (which was otherwise missing from the
--navigate regex) and ensures that a direct diff has a label to stop at
when --navigate is enabled. One of the unified-diff tests now uses
--file-modified-label=comparing: to generate the same output as before,
while the other now uses --navigate to get a delta char label.
|
|
|
|
|
|
|
|
Fixes #426
Partial versions of these changes were previously in master and then
reverted multiple times.
See #746
0745f853d4bed52aca0b6739ac452d54ff54a153
3aab5d19569fa52ace2d7e6d196a1256990c4e20
|
|
|
|
|
|
|
|
Usecase: With delta used as a pager the command `git blame main.rs` calls
delta, but the piped data does not mention the filename. Instead try to
get the filename extension from the parent `git` process.
If that fails try the direct sibling or all other `git blame` processes.
|
|
|
|
|
|
|
|
|
|
|
|
Simplifies line handling and printing by removing a "magical"
1-offset previously required in various locations.
Now explicitly prepend "" in `tokenize()`.
|
|
|
|
Ref.: https://github.com/dandavison/delta/issues/760
|
|
|
|
|
|
To ease collaboration, XVilka has decided to relocate their gist to an
actual Github repository a while ago, in oder to facilitate contribu-
tions.
Ref: https://gist.github.com/XVilka/8346728#gistcomment-3836228 ff.
|
|
The struct's lifetime is not used outside new(), and most
of the methods used more like free functions, so uniformly
use 'a there. Also fix wrongly used lifetime for get_syntax().
|
|
|
|
|
|
|
|
Fixes #755
Ref #662
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This should have been done in 0745f853d4bed52aca0b6739ac452d54ff54a153
and the command line options were therefore incorrectly released in
0.9.0.
|
|
|
|
|
|
Even though this feature enables line numbers, these can be disabled via
the git config `delta.line-numbers=false`. So always enable line numbers,
even if they do not print numbers.
Construct more structs with ..Self::default()
|
|
|
|
This reverts commit 8886648374e59cb27ff6dfd240a7b7207a617bfd.
|
|
|
|
- Run audit when changing audit.toml
|
|
This reverts commit ec372683a190427c0fc7b31646849da10996a940.
This reverts commit ff25f2ba3be40c0ddb2354c642a7ef453ad92d45.
|