diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-07-11 12:09:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-11 12:09:18 -0400 |
commit | 4c8f5f5835956e9f5b852b9adbf0a5ffbea1e9be (patch) | |
tree | fa20d7e780cb67cd67976524f0404b6e73983a6f /src/cli.rs | |
parent | ca44215ac6bff9ca1ac2497247ac2286e630bde5 (diff) |
Add side-by-side diff view (#243)
Closes #86
Diffstat (limited to 'src/cli.rs')
-rw-r--r-- | src/cli.rs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -212,6 +212,10 @@ pub struct Opt { #[structopt(short = "n", long = "line-numbers")] pub line_numbers: bool, + /// Display a side-by-side diff view instead of the traditional view. + #[structopt(short = "s", long = "side-by-side")] + pub side_by_side: bool, + #[structopt(long = "diff-highlight")] /// Emulate diff-highlight (https://github.com/git/git/tree/master/contrib/diff-highlight) pub diff_highlight: bool, @@ -516,6 +520,7 @@ pub struct ComputedValues { pub syntax_theme: Option<SyntaxTheme>, pub syntax_dummy_theme: SyntaxTheme, pub true_color: bool, + pub available_terminal_width: usize, pub decorations_width: Width, pub background_color_extends_to_terminal_width: bool, pub paging_mode: PagingMode, |