From dda6fdb457f347027398b79f5fe4a88cdc02ec0c Mon Sep 17 00:00:00 2001 From: Thomas Otto Date: Wed, 30 Dec 2020 21:03:22 +0100 Subject: 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. --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index a3587341..8b382a34 100644 --- a/src/main.rs +++ b/src/main.rs @@ -22,6 +22,8 @@ mod paint; mod parse_style; mod plusminus; mod style; +mod wrapping; + mod subcommands; mod syntect_color; mod tests; -- cgit v1.2.3