summaryrefslogtreecommitdiff
path: root/src/parse_styles.rs
AgeCommit message (Collapse)Author
2024-11-09Redundant Option Checks, Unwrap Safety (#1892)shray sharma
Redundant Option Checks, unwrap Safety, unnecessary Lifetimes, Rust often infers lifetimes automatically --------- Co-authored-by: Quied <dexflame3@gmail.com>
2024-09-08Replace "light mode" bool with a dedicated enumTau Gärtli
2024-02-19Accept clippy suggestions (#1632)Dan Davison
2023-06-03Drop grep-header-style optionDan Davison
2023-06-03Honor grep-header-decoration-style for ripgrep outputDan Davison
2023-06-02Introduce grep-output-type option: ripgrep or classicDan Davison
2023-03-09Add methods for getting `GitConfig` as reference (#1336)nickelc
2023-03-08Get git's minus/plus style from config instead of copying it around (#1329)nickelc
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-12-28blame-separator and blame-separator-style optionsDan Davison
2021-12-28Refactor blame handlerDan Davison
- Give up on repeat blame line optimization - Don't assume blame key is commit
2021-12-24New option blame-code-styleDan Davison
Fixes #867
2021-12-05Display merge conflictsDan Davison
2021-11-24Support style names in --map-stylesDan Davison
2021-11-22Fix non-compiling code after independent mergesDan Davison
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-22Handle grep outputDan Davison
- Handle standard filepath:code and filepath:line_number:code output as produced by `git grep`, `rg -H`, `grep -H`, etc (with -n for line numbers). - Retain the match highlighting as produced by the grep tool, and expose it in delta's color output styled with grep-match-style. (Note that --color=always is needed to retain the color if piping into delta, but not for `git grep` when delta is configured as git's pager) - Special handling of -p, and -W options of `git grep`: these display the function context in which the matches occur. - `navigate` keybindings jump between match function contexts under `git grep -p` and between matching lines under `git grep -W`. Thanks @zachriggle for the proposal. Fixes #769
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-21Support custom styles in delta gitconfigDan Davison
2021-11-21Allow styles to be specified as references to other stylesDan Davison