Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-06-03 | Pass clap ArgMatches to cli::process_command_line_arguments | Dan Davison | |
2020-06-02 | Implement compositional decoration attributes | Dan Davison | |
Ref #205 | |||
2020-06-02 | Add failing tests of compositional options: --element-style='box ul' | Dan Davison | |
2020-06-01 | Add tests of deprecated --element-style={box,underline} options | Dan Davison | |
2020-05-31 | Make decorations honor --width variable | Dan Davison | |
2020-05-31 | Allow --ELEMENT-style=none meaning no style | Dan Davison | |
2020-05-31 | Allow --ELEMENT-decoration-style=none | Dan Davison | |
2020-05-31 | Fix test | Dan Davison | |
2020-05-31 | In tests, handle 4-bit colors in the context of arbitrary styles | Dan Davison | |
2020-05-31 | Add failing tests of handling input with color | Dan Davison | |
2020-05-31 | Add support for 4-bit foreground colors in test utilities | Dan Davison | |
4-bit color ANSI escape sequences look like: ^[1;31m For foreground, they are the 8 color codes 30-37 and the 8 bright color codes 90-97 Delta does not actually emit them (they are converted to ansi_term::Color::Fixed(n) by to_ansi_color), but git does by default, so they are needed for testing delta's handling of colors received from git. | |||
2020-05-31 | In tests, interpret color string as style string | Dan Davison | |
2020-05-31 | Add failing test: assert file is styled under decoration-style=omit | Dan Davison | |
2020-05-30 | Add test of --hunk-header-style='' | Dan Davison | |
2020-05-30 | Strengthen tests slightly | Dan Davison | |
2020-05-30 | Add tests of `--ELEMENT-decoration-style omit` | Dan Davison | |
2020-05-30 | Add failing tests of `--thing-style omit` | Dan Davison | |
2020-05-30 | Fix test names | Dan Davison | |
2020-05-30 | Add failing test of --commit-style raw | Dan Davison | |
2020-05-30 | Add failing test of --file-style raw | Dan Davison | |
2020-05-30 | Add failing test of --hunk-header-style raw | Dan Davison | |
2020-05-30 | Update --*-style tests | Dan Davison | |
2020-05-29 | Paint box-drawing characters with bold attribute when bold requested | Dan Davison | |
Reverts functionality change in ad9c0899c32217f42ce0b68e5191e16c69355c77 | |||
2020-05-28 | Add a blank line before each hunk | Dan Davison | |
2020-05-28 | Bug fix: honor bold by using "heavy" box drawing characters | Dan Davison | |
This commit honors the bold style attribute by selecting characters from the "heavy" set and then painting those without the bold attribute set. Painting with the bold style attribute set seems to result in incorrect rendering of the box-drawing characters: e.g. the vertical line sections don't "meet up" (at least, in iTerm2 and Terminal on MacOS). | |||
2020-05-28 | Bug fix: hunk header background color was not reaching box line | Dan Davison | |
2020-05-27 | Refactor: Create color and theme modules, consolidate style code | Dan Davison | |
2020-05-26 | Update tests after implementing decoration styles | Dan Davison | |
2020-05-26 | Implement --{commit,file,hunk-header}-{style,decoration-style} | Dan Davison | |
2020-05-25 | Add tests of --file-style, --commit-style, --hunk-style | Dan Davison | |
2020-05-23 | Clean up tests | Dan Davison | |
2020-05-23 | Use CLI defaults when constructing command line options for tests | Dan Davison | |
2020-05-23 | Implement --*-non-emph styles | Dan Davison | |
Fixes #169 | |||
2020-05-22 | Use new Style struct, wrapping ansi_term::Style | Dan Davison | |
2020-05-22 | Implement hunk styles using style string arguments | Dan Davison | |
- Do not apply foreground syntax style if it is "null syntect style" This isn't really correct. We should find either a valid sentinel value, or a way to only do the superimposing when we're doing syntax-highlighting. - Add --zero-style option (style for unchanged hunk lines) - Implement --color-only using an option rewrite rule | |||
2020-05-22 | Use ansi_term style data structures instead of syntect | Dan Davison | |
2020-05-22 | Introduce style strings to replace color options | Dan Davison | |
https://git-scm.com/docs/git-config#Documentation/git-config.txt-color - Support "syntax" pseudo foreground color - Delete the --syntax-highlight CLI option This was never released. | |||
2020-05-20 | Refactor: consume options when creating config | Dan Davison | |
2020-05-17 | Add new command-line options controlling foreground colors | Dan Davison | |
- Revert "Do not expose new foreground color options yet" This reverts commit 253bc3ac0fe34a8f08c2bf625fcc8bb78de01a4c. - Make test assertions for minus_foreground_color - Fix test: fix detection of foreground color - Add diagnostic output to hunk highlighting test - Disable syntax-highlighting if the user has set foreground colors - Eliminate redundant style modifiers in config - Revert fixed_foreground_style implementation The syntax_style_sections will just contain syntect styles, or else a dummy no-op style. All delta styles will be done in diff_style_sections. - Add more dimensions to grid in hunk highlighting test - Support "none" as a value for background colors - Set foreground colors in a way that's consistent with background colors - Bug fix: don't highlight when there is no theme | |||
2020-05-16 | Do not expose new foreground color options yet | Dan Davison | |
2020-05-16 | Hunk highlighting test and refactoring | Dan Davison | |
- New command-line option --syntax highlight to select which category of hunk lines to be syntax highlighted. --highlight-removed is now deprecated. - New hunk highlighting test tests syntax highlighting and background colors - Refactor: construction of style modifiers for config struct - Refactor: compute minus and plus foreground style sections separately - Refactor: foreground style logic - Refactor: rearrange style modifier construction for config - Refactor: change variable name: => highlight_minus_lines - Refactor: clean up --color-only config implementation |