summaryrefslogtreecommitdiffstats
path: root/src/paint.rs
AgeCommit message (Collapse)Author
2020-08-14New ANSI escape sequence parser based on vteDan Davison
Reimplement utility functions from `console` crate, but with support for OSC sequences.
2020-08-09Expand tabs when emitting as raw lineDan Davison
Fixes #280
2020-08-06Do not send artificial leading space to syntax highlighterDan Davison
Fixes #275
2020-08-06Fix commentDan Davison
2020-08-01Change parse_first_style() to take &str instead of bytes iteratorDan Davison
2020-08-01Set fill style for raw linesDan Davison
Before this, if a color-moved color such as color.diff.oldMoved had a background color, then the background color terminated with the text.
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-30Create ansi moduleDan Davison
2020-07-13Refactor: has_background_color() -> get_background_color()Dan Davison
2020-07-11Add side-by-side diff view (#243)Dan Davison
Closes #86
2020-07-10Refactor: compute fill styles from line typeDan Davison
2020-07-09Bugfix: empty line marker color was overwriting line numbersDan Davison
2020-07-09Silent bug fix: push empty line marker to line, not output bufferDan Davison
2020-07-09RefactorDan Davison
2020-07-09Refactor: functions for emitting line end ANSI sequencesDan Davison
2020-07-08Refactor: paint_linesDan 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-08Refactor: line numbersDan Davison
2020-07-07Refactor: line numbersDan Davison
2020-07-07Refactor: parse line-numbers format strings earlyDan Davison
2020-06-30Fix infinite recursion when there are no syntax referencesDan Davison
2020-06-26Bugfix: fix highlighting bug (no test coverage)Dan Davison
2020-06-25Rename: --number => --line-numbersDan Davison
2020-06-25Support subset of Rust string format languageDan Davison
2020-06-25Rearrange: move code into numbers feature moduleDan Davison
2020-06-25Alternative regex match processingDan Davison
2020-06-25FormattingDan Davison
2020-06-25Command line option to apply line number style to unchanged linesCatherine Noll
2020-06-19Refactor: add native style.paint() methodDan Davison
2020-06-18Do not emit unnecessary ANSI sequenceDan Davison
https://github.com/dandavison/delta/pull/225#discussion_r442234332
2020-06-17Fix failing test: removal of whitespace error is not an errorDan Davison
2020-06-17Refactor: simplify paint_lines terminal background color logicDan Davison
2020-06-17Highlight whitespace errorsDan 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-16Refactor: prepare for updating whitespace error stylesDan Davison
2020-06-16Rename ANSI escape sequence constantDan Davison
2020-06-16Do not paint empty stringsDan Davison
2020-06-11New option --word-diff-regexDan Davison
Fixes #184
2020-06-08Edit help text, touch-upsDan 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-06Use 'syntax_theme' instead of 'theme' everywhereDan Davison
2020-05-30Bug fix: non-emph styling was incorrectDan Davison
The code was relying on inequality-by-value of e.g. --minus-style and --minus-emph-style. So when those were the same by value, the behavior was incorrect. See also previous commit eec0fb23cfcf64cd2a5da78895112ce7fe3f1108
2020-05-30Hack: add boolean to Style struct to identify non-emph stylesDan Davison
This isn't a correct approach. The problem being addressed is that currently, Style instances are being used to represent things like the presence of an emph section in a line with edit annotations. A consequence is that if an emph and non-emph section are styled the same, then it's impossible to tell that the sections are different in any way at all. I think the correct approach is probably to start using a Struct that models elements such as emph/non-emph to represent these things, and make each such struct instance possess a style.
2020-05-30Add is_omitted field to Style structDan 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.)