summaryrefslogtreecommitdiffstats
path: root/src/options
AgeCommit message (Collapse)Author
2021-05-27Infer that a theme is light if its name contains "light" (#617)Dan Davison
2021-05-25Add hyperlinks-commit-link-format option (#614)Dan Davison
* Refactor: hyperlinks utility * Add hyperlinks-commit-link-format option Fixes #613
2021-05-24Support custom commit line regex when parsing git output (#558)Dan Davison
Fixes #174
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
2021-04-24Add relative-paths optionDan Davison
2021-04-24Add --diff-stat-align-width to control alignment of relativized pathsDan Davison
2021-04-23Deprecate --24-bit-color, replacing with --true-color (#571)Dan Davison
Fixes #567
2021-04-15CI: check docs (#559)Marco Ieni
* CI: check docs * Don't use triple-slash doc comments A full pass would need to be done to make the comments suitable for generating documentation. Co-authored-by: Dan Davison <dandavison7@gmail.com>
2021-03-30Remove unnecessary trailing semicolon after enum (#555)Max
2021-03-29Clippy (#554)Dan Davison
* Clippy
2021-03-28Display themes alphabetically when using --show-themesCatherine Noll
2021-03-28Use string literal instead of escaping double quotesCatherine Noll
2021-03-27Remove unnecessary check in get_themes and clean up --show-themes cli docstringCatherine Noll
2021-03-27Fix typo in docstringCatherine Noll
2021-03-27Define theme by presence of "dark" or "light" entries in git config,Catherine Noll
and give the ability to filter themes shown with --show-themes by dark or light, using the --dark and --light flags
2021-03-27Reorganize and add test for get_themesCatherine Noll
2021-03-20Skeleton for show-themes command line optionCatherine Noll
2021-01-08Clippy (#496)Dan Davison
2021-01-08Prevent tests setting env vars from affecting other testsDan Davison
2021-01-08Parse GIT_CONFIG_PARAMETERSDan Davison
When git is invoked as `git -c aaa.bbb=ccc -c ddd.eee=fff` then git sets the env var GIT_CONFIG_PARAMETERS containing the changed config entries, so that child processes can honor them. libgit2 doesn't yet honor the env var: see https://github.com/libgit2/libgit2/issues/3854. Fixes #493 Fixes #307 Ref https://github.com/dandavison/magit-delta/issues/13
2021-01-08Create git_config moduleDan Davison
2020-12-31Add styles for file path and line number in hunk headerDan Davison
Fixes #481
2020-12-27Revert "Interpret `line-numbers = false` in gitconfig as no line numbers at ↵Dan Davison
all (#296)" This reverts commit ecb2da1e271aa0daa6dd2ed4c6658d59347020e6.
2020-12-08Make commit style to be colored with same structure while color_only #405 (#438)ulwlu
* Remove force assing raw to commit style when color_only * Add test for commit style color when color_only
2020-12-08Make hunk header style to be colored with same structure while color_only ↵ulwlu
#405 (#437) * Remove force passing raw to hunk header style when color_only * Handle hunk header color when color_only * Add test for hunk header style color when color_only * Delete fixme because it actually is required * Add comment for condition that keeps structure when color_only and raw mode
2020-12-08Make file style to be colored with same structure while color_only #405 (#436)ulwlu
* Add config property of color_only * Delete force assign raw to file_style when color_only * Print filemeta in color with rawline when color_only mode * Cargo fmt * Add test if file_style with color_only has style * Add comment about color_only
2020-12-05Expose line-buffer-size as a new option (#429)Dan Davison
Fixes #427
2020-11-22Handle copied filesDan Davison
Fixes #392
2020-11-22Fix diff interactivefilter when decoration option is enabled (#367)ulwlu
* Add test for diffInteractiveFilter for all options * Disable **-decoration-style when color-only * Edit color-only one-to-one test cases Co-authored-by: ryuta69 <eyma22s.yu@gmail.com> Co-authored-by: Dan Davison <dandavison7@gmail.com>
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-10-28Add gruvbox light support (#369)Michał Kiełbowicz
* Add gruvbox light support * Update binary assets from bat v0.16.0 Co-authored-by: Dan Davison <dandavison7@gmail.com>
2020-10-04Support DELTA_PAGER env varDan Davison
2020-09-18Fix `git add -p` to work when any options enabled (#323)ryuta69
* Add test for input and output for diff interactive filter * Add color_only in config struct * Refactor should_handle false when color_only and FileMeta, CommitMeta * Refactor handle_hunk_header_line to show raw_text with color_format when color_only * Fix indent * Revert the logic changes for interactive filter * Add color only workaround in set options * Add more test patterns for diff interactive fillter
2020-09-03Hack: env var for boolean flagDan Davison
The proper way would be using env = "DELTA_NAVIGATE", but see https://github.com/clap-rs/clap/issues/1476 https://github.com/TeXitoi/structopt/issues/372 Doing it as in this commit probably has drawbacks, e.g. related to whether the argument is recorded as having been supplied.
2020-08-20Interpret `line-numbers = false` in gitconfig as no line numbers at all (#296)Dan Davison
Fixes #292
2020-08-15RearrangeDan Davison
2020-08-14Add new option to show-config and test of gitconfigDan Davison
2020-08-14Truncate long lines (#290)Dan Davison
Fixes #154, #288
2020-08-08Eliminate an .unwrap()Dan Davison
2020-08-08Disable side-by-side when color-only is in effectDan Davison
Fixes #274
2020-08-01Add inspect-raw-lines {true,false} optionDan Davison
Fixes #72
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-08-01Match paging-mode case-insensitivelyDan Davison
2020-08-01Fix order of `use` statementsDan Davison
2020-07-30Honor width option in git_configryuta69
* Update width to accept gitconfig value * Feature set width from gitconfig only when cli option is not supplied * Add unittest of width in gitconfig * Delete duplicate field of width It's already roled by decorations_width. * Fix show_config of width with decorations_width * Fix test not with static number but dynamic variable * Fix the way of getting value of user configured width use gather_builtin_features_recursively in set_options is the ideal way, it can get inside custom_features and set as option. * Refactor checking if none * Fix if width is assigned variable then output variable
2020-07-22Format files and commits as OSC 8 hyperlinksDan Davison
Closes #257
2020-07-22Read git config entries at start-upDan Davison