summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2021-11-18Handle grep output769-git-grep-rebaseDan 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-18Obtain parent git grep command line optionsDan Davison
2021-11-18Refactor: get_painted_file_with_line_number functionDan Davison
2021-11-18Refactor: StyleSectionSpecifier enum for syntax_highlight_and_paint_lineDan Davison
2021-11-18Function to compute text index in string containing ANSI sequencesDan Davison
2021-11-18Clarify tests of ansi_preserving_sliceDan Davison
2021-11-18Parse styles from a string containing ANSI sequencesDan Davison
2021-11-18Add ProcessInterfaceThomas Otto
2021-11-18Make process utils more genericThomas Otto
2021-11-17Add the --right-arrow option.Wayne Davison
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.
2021-11-17Use file-modified-label consistently.Wayne Davison
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.
2021-11-15Update blame docsDan Davison
2021-11-15Update blame documentationDan Davison
2021-11-15Refactor: utils moduleDan Davison
2021-11-15Handle `git blame` outputDan Davison
Fixes #426 Partial versions of these changes were previously in master and then reverted multiple times. See #746 0745f853d4bed52aca0b6739ac452d54ff54a153 3aab5d19569fa52ace2d7e6d196a1256990c4e20
2021-11-15Support precision specifier in run-time format stringsDan Davison
2021-11-15Clean upDan Davison
2021-11-15Fix test of parent process when run under cargo-tarpaulinDan Davison
2021-11-15Util: check parent process for `git blame` filename (#770)Thomas Otto
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.
2021-11-15README editDan Davison
2021-11-15Update README ToCDan Davison
2021-11-15Doc: explain invocation of delta by gitDan Davison
2021-11-15Markdown autoformattingDan Davison
2021-11-14Sort config struct entriesDan Davison
2021-11-10Remove +/- line prefix instead of substituting a spaceThomas Otto
Simplifies line handling and printing by removing a "magical" 1-offset previously required in various locations. Now explicitly prepend "" in `tokenize()`.
2021-11-10Add compact debug formatting for StyleThomas Otto
2021-11-07[README] add notes for screen (256color/24bit) (#768)Kriss
Ref.: https://github.com/dandavison/delta/issues/760
2021-11-07Update private Homebrew formula to 0.9.2 (fix #766) (#767)Linda_pp
2021-11-07README: minor editsDan Davison
2021-11-05replace link to XVilka's gist with the updated one (#764)Kriss
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.
2021-11-01Simplify lifetime annotation of Painter (#758)Thomas Otto
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().
2021-11-01README: remove spurious feature in example configDan Davison
2021-10-29Don't use gren to generate release notesDan Davison
2021-10-29Bump version0.9.2Dan Davison
2021-10-29Do not reformat submodule diffs under `git add -p` (#756)Dan Davison
Fixes #755 Ref #662
2021-10-27Add screenshot of side-by-side with wrappingDan Davison
2021-10-26Bump version in private Homebrew formulaDan Davison
2021-10-26Update release MakefileDan Davison
2021-10-26Bump version in links to executablesDan Davison
2021-10-26Bump version: 0.9.10.9.1Dan Davison
2021-10-26README editsDan Davison
2021-10-26Delete unused blame CLIDan Davison
This should have been done in 0745f853d4bed52aca0b6739ac452d54ff54a153 and the command line options were therefore incorrectly released in 0.9.0.
2021-10-26Bump version in private Homebrew formulaDan Davison
2021-10-26Update READMEDan Davison
2021-10-26Fix side-by-side mode without line numbers0.9.0Thomas Otto
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()
2021-10-26Simplify incrementing of line numbersThomas Otto
2021-10-26Revert "Revert "Revert git blame handling (#746)""Dan Davison
This reverts commit 8886648374e59cb27ff6dfd240a7b7207a617bfd.
2021-10-26Update syntaxes and themes from bat v0.18.3FnControlOption
2021-10-26Ignore RUSTSEC-2020-0071Dan Davison
- Run audit when changing audit.toml
2021-10-26Revert "Revert git blame handling (#746)"Dan Davison
This reverts commit ec372683a190427c0fc7b31646849da10996a940. This reverts commit ff25f2ba3be40c0ddb2354c642a7ef453ad92d45.