summaryrefslogtreecommitdiffstats
path: root/src/options/set.rs
AgeCommit message (Collapse)Author
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-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
2020-07-15Set features earlyDan Davison
Fixes #252
2020-07-15Fix programmatic construction of option/flag namesDan Davison
Fixes #253
2020-07-15Add test assertions for opt.computedDan Davison
2020-07-15Parse paging_mode option value after setting itDan Davison
2020-07-15Add test that all options can be set in git configDan Davison
2020-07-11Allow user-supplied width to exceed terminal width0.3.0Dan Davison
2020-07-11Add side-by-side diff view (#243)Dan Davison
Closes #86
2020-07-10Refactor: return Vec instead of StringDan Davison
2020-07-10Fix typoDan Davison
2020-07-10Allow a builtin feature to reference other builtin featuresDan Davison
2020-07-10Refactor: gather_featuresDan Davison
2020-06-30Add more computed values to options structDan Davison
2020-06-30Set light/dark mode before builtin featuresDan Davison
2020-06-30Rearrange: options::theme moduleDan Davison
2020-06-30Set the light/dark/theme option values earlyDan Davison
2020-06-30Refactor: options moduleDan Davison