From b9c72cbff08ce92142727de1511380e41da489f4 Mon Sep 17 00:00:00 2001 From: Maurice Wangleng Tan Date: Thu, 5 Oct 2023 08:22:50 +0800 Subject: [PATCH] Update THEMES.md --- THEMES.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/THEMES.md b/THEMES.md index b1d36f90f2..ff3be94a59 100644 --- a/THEMES.md +++ b/THEMES.md @@ -31,3 +31,21 @@ Notes: * using a color like `yellow` might appear in whatever your terminal/theme defines for `yellow` * valid colors can be found in tui-rs' [Color](https://docs.rs/tui/0.12.0/tui/style/enum.Color.html) struct. * all customizable theme elements can be found in [`style.rs` in the `impl Default for Theme` block](https://github.com/extrawurst/gitui/blob/master/src/ui/style.rs#L305) + +## Customizing line breaks + +If you want to change how the line break is displayed in the diff, you can also specify `line_break` in your `theme.ron`: + +``` +( + line_break: Some("ΒΆ"), +) +``` + +Note that if you want to turn it off, you should use a blank string: + +``` +( + line_break: Some(""), +) +```