summaryrefslogtreecommitdiffstats
path: root/src/paint.rs
AgeCommit message (Collapse)Author
2020-12-08WIP326-map-syntaxDan Davison
Ref #326
2020-12-05Pass pre-painted prefix as OptionDan Davison
2020-12-05Pass pre-painted prefixDan Davison
2020-12-05Fix whitespace errors under keep-plus-minus-markers (#425)Dan Davison
* Add failing test of added empty line with keep-plus-minus-markers * Fix whitespace error flagging with keep-plus-minus-markers Fixes #388 * Possibly more efficient implementation * Fix clippy * Fix clippy II * Increase tarpaulin timeout * Increase tarpaulin timeout * Add failing test of line with one non-whitespace character * Fix test of line with one non-whitespace character * Revert tarpaulin changes
2020-12-03Disable some clippy warnings (#422)Dan Davison
2020-11-22use push() instead of push_str() for single char (#394)Marco Ieni
This solves a clippy warning
2020-11-14Rename directory: src/bat -> src/bat_utilsDan Davison
2020-11-07remove some clippy warnings (#383)Marco Ieni
* remove some clippy warnings * revert comparison_chain clippy lint Allow it locally
2020-11-05fix some clippy warnings (#380)Marco Ieni
2020-11-01Do not strip leading +/- under keep-plus-minus-markersDan Davison
Ref #371
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