summaryrefslogtreecommitdiffstats
path: root/src/delta.rs
AgeCommit message (Collapse)Author
2020-09-18Add break line in each part of lines (#325)ryuta69
2020-09-18Fix `git add -p` to work when any options enabled (#323)ryuta69
* Add test for input and output for diff interactive filter * Add color_only in config struct * Refactor should_handle false when color_only and FileMeta, CommitMeta * Refactor handle_hunk_header_line to show raw_text with color_format when color_only * Fix indent * Revert the logic changes for interactive filter * Add color only workaround in set options * Add more test patterns for diff interactive fillter
2020-08-20Interpret `line-numbers = false` in gitconfig as no line numbers at all (#296)Dan Davison
Fixes #292
2020-08-14Do not display hunk first line number when hunk-header-style is rawDan Davison
Fixes #292 When hunk-header-style is raw, the line numbers are present in the hunk header.
2020-08-14Truncate long lines (#290)Dan Davison
Fixes #154, #288
2020-08-14Use native ansi-parsing utilities instead of console crateDan Davison
Fixes #262 console was great but it didn't support ANSI OSC sequences.
2020-08-08Calculate line numbers correctly in raw/color-only mode (#272)Yoichi NAKAYAMA
* Calculate line numbers correctly in raw/color-only mode - call handle_hunk_header_line() if line number option is set - insert empty line before hunk header line only if decoration style is set * Move condition into should_handle()
2020-08-02Bugfix: avoid emitting header twice when file is renamed with changesDan Davison
Fixes #245
2020-08-01Add inspect-raw-lines {true,false} optionDan Davison
Fixes #72
2020-08-01Emit raw lines instead of explicitly handling --color-movedDan Davison
2020-08-01Initial implementation of color-moved supportDan Davison
- Inspect the raw hunk line - If it does not appear to be a standard minus/plus line, treat it as moved - Apply special delta color-moved-* styles
2020-07-27Paint buffered minus and plus lines before handling hunk headerDan Davison
Fixes #263
2020-07-27Move a line for consistencyDan Davison
2020-07-22Format files and commits as OSC 8 hyperlinksDan Davison
Closes #257
2020-07-10Refactor: compute fill styles from line typeDan Davison
2020-07-08Refactor: move prepare() and expand_tabs() into PainterDan Davison
2020-07-08Refactor: Painter::paint_zero_lineDan Davison
2020-07-08Rename functionDan Davison
2020-07-08Do not use line_numbers data structure unless line-numbers is activeDan Davison
2020-07-08Refactor: line numbersDan Davison
2020-07-07Fix line number paddingDan Davison
Fixes #238
2020-07-07Refactor: parse line-numbers format strings earlyDan Davison
2020-07-05Rename function: hunk_metadata -> hunk_headerDan Davison
2020-07-05Simplify regexDan Davison
2020-07-05Refactor: parse unified diff hunk headerDan Davison
2020-07-01Improve unified diff directory diff handlingDan Davison
Fixes #232
2020-06-26Bugfix: fix highlighting bug (no test coverage)Dan Davison
2020-06-25Delete redundant state assignmentDan Davison
2020-06-25Fix state machine FileMeta parse bugDan Davison
2020-06-25Fix test: --color-only should syntax highlightDan Davison
2020-06-25Rename: --number => --line-numbersDan Davison
2020-06-17Highlight added/removed empty lines if they would be invisibleDan Davison
Thanks @phillipwood
2020-06-17Eliminate leading space unless --keep-plus-minus-markersDan Davison
2020-06-08Add --number option for showing line numbers. Also adds related options:Catherine Noll
- format string for specifying minus number line - format string for specifying plus number line - minus number style - plus number style - minus format string style - plus format string style
2020-06-03New CLI options: --file-modified-label, --file-removed-label, etcDan Davison
2020-06-02Implement compositional decoration attributesDan Davison
Ref #205
2020-05-31Make decorations honor --width variableDan Davison
2020-05-31Make decorations respect --widthDan Davison
Fixes #61 Fixes #155
2020-05-31Implement --{commit,file,hunk-header}-style=rawDan Davison
2020-05-31Fix painting of file line under --decoration-style=omitDan Davison
2020-05-30Implement --thing-style omitDan Davison
2020-05-30Implement --commit-style raw with decorationDan Davison
`--commit-style fg bg` is also raw at this point (delta colors are ignored) but this commit ensures that '--commit-style raw' doesn't erroneously remove the decoration.
2020-05-30Implement --file-style raw with decorationDan Davison
`--file-style raw` doesn't have any effect currently (unlike `--hunk-style raw`), but this commit ensures that it doesn't erroneously remove the decoration.
2020-05-30Refactor: config.get_style and delta::should_handleDan Davison
2020-05-30Emit raw hunk header with decorationDan Davison
2020-05-30Make decoration style non-optionalDan Davison
2020-05-29Introduce is_raw style attributeDan Davison
If this attribute is set in --thing-style then the `thing` element text received from git should be passed though unchanged. (It may or may not have a decoration.)
2020-05-29Change decoration style enum variant name: Omit => NoDecorationDan Davison
2020-05-29Remove distracting comment about edge case bugDan Davison
2020-05-28Add a blank line before each hunkDan Davison