Age | Commit message (Collapse) | Author |
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
- 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
|
|
|
|
|
|
- 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
|
|
- 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
|