summaryrefslogtreecommitdiff
path: root/src/parse_style.rs
AgeCommit message (Collapse)Author
2023-11-20Make hunk header code fragment display optional (#1568)Zack Cerza
Fixes: #1032
2023-04-26Update `bitflags` to 2.2.1 (#1361)nickelc
The `Clone`, `Copy`, `Debug` and `PartialEq` traits are no longer derived automatically by the macro.
2023-02-28Fix clippy warnings (#1298)nickelc
* Fix clippy warnings - `clippy::uninlined_format_args` * Fix clippy warnings - `clippy::clone_on_copy` - `clippy::explicit_auto_deref` - `clippy::iter_cloned_collect` - `clippy::map_clone` - `clippy::needless_borrow` - `clippy::needless_lifetimes` - `clippy::needless_return` - `clippy::redundant_clone` - `clippy::redundant_field_names` - `clippy::seek_to_start_instead_of_rewind` - `clippy::unnecessary_cast` - `clippy::unused_unit`
2022-01-16Drop deprecated options (#914)Dan Davison
Drop deprecated options Fixes #891
2021-11-22Allow custom colors to be defined in gitconfig (#788)Dan Davison
Similar to 7a64fa5a26314c05c811d7c1276388a4963fa0bd which allowed custom styles. Custom styles must end in -style, but colors can be anything. It unfortunately seems not to be possible currently to store a global reference to git config, hence the size of this commit (passing the reference down the call stack).
2021-11-21Set is_emph explicitly on *-emph-stylesDan Davison
This addresses a bug triggered by doing things like minus-style = minus-emph-style That was causing the is_emph bit to be set on minus-style, with undesirable consequences.
2021-11-15Clean upDan Davison
2021-10-18Use fatal() to exit with errorcode 2 (#739)Thomas Otto
* Fix two typos * Dismantle two Pyramids of Doom Use question mark operator instead * Use fatal() to exit with errorcode 2
2021-10-16Fix clippy warning needless_option_as_derefThomas Otto
2021-08-18Remove unnecessary borrows (#692)Ben Armstead
2021-04-29Fix ansi syntax theme (#581)Dan Davison
* Update to latest version of bat::terminal::to_ansi_color Fixes #447 * Delete mention of historical syntax theme ansi-light * Update tests
2020-12-31Add styles for file path and line number in hunk headerDan Davison
Fixes #481
2020-12-27Use special style attribute to control line-number in hunk-headerDan Davison
2020-12-19Add failing test of hunk-header-style 'file' attributeDan Davison
Ref #309
2020-08-01Emit raw lines instead of explicitly handling --color-movedDan Davison
2020-07-13Refactor: simplify color parsingDan Davison
2020-06-27Rename: unreachable -> delta_unreachableDan Davison
2020-06-27Refactor: ANSI 16 color (name, number) hash mapDan Davison
2020-06-27Bugfix: inherit style attributes from default styleDan Davison
In particular, plus-non-emph-style was lacking syntax highlighting prior to this commit.
2020-06-27Refactor: pass foreground & background defaults as a single StyleDan Davison
2020-06-26Refactor: parse_style moduleDan Davison