summaryrefslogtreecommitdiffstats
path: root/src/options/set.rs
diff options
context:
space:
mode:
authorThomas Otto <th1000s@posteo.net>2020-12-30 21:03:22 +0100
committerThomas Otto <th1000s@posteo.net>2021-10-16 14:07:30 +0200
commitdda6fdb457f347027398b79f5fe4a88cdc02ec0c (patch)
tree196547159946482ddfd44dae39623ca7bd1f6187 /src/options/set.rs
parentebd008c364bc43cd71ee31a3570a03f6dd80a493 (diff)
Add side-by-side line wrapping
If the current line does not fit into the panel, then it is not truncated but split into multiple lines. A wrapping symbol is placed at the end of the line. If the new line is short enough, it is right-aligned. Wrapping is limited to a certain number of lines (--wrap-max-lines), if this is exceeded the line is truncated by a now highlighted truncation symbol. To disable wrapping set this value to 0.
Diffstat (limited to 'src/options/set.rs')
-rw-r--r--src/options/set.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/options/set.rs b/src/options/set.rs
index 1f533269..1d6f13ed 100644
--- a/src/options/set.rs
+++ b/src/options/set.rs
@@ -179,6 +179,11 @@ pub fn set_options(
relative_paths,
show_themes,
side_by_side,
+ wrap_max_lines,
+ wrap_right_prefix_symbol,
+ wrap_right_percent,
+ wrap_right_symbol,
+ wrap_left_symbol,
tab_width,
tokenization_regex,
true_color,