From a1e2d6a5573d967aaceeadaefa17b6a00a2e4ca4 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Fri, 1 Jan 2021 05:19:03 +0000 Subject: Add vi/search line indicator This adds a new visual indicator which shows the position in history of either the display offset during search, or the vi mode cursor. To make it as unintrusive as possible, the overlay is hidden whenever the vi mode cursor collides with its position. Fixes #3984. --- alacritty_terminal/src/config/colors.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'alacritty_terminal') diff --git a/alacritty_terminal/src/config/colors.rs b/alacritty_terminal/src/config/colors.rs index f295da1c..88ca5057 100644 --- a/alacritty_terminal/src/config/colors.rs +++ b/alacritty_terminal/src/config/colors.rs @@ -16,6 +16,7 @@ pub struct Colors { pub dim: Option, pub indexed_colors: Vec, pub search: SearchColors, + pub line_indicator: LineIndicatorColors, } impl Colors { @@ -28,6 +29,12 @@ impl Colors { } } +#[derive(ConfigDeserialize, Copy, Clone, Default, Debug, PartialEq, Eq)] +pub struct LineIndicatorColors { + pub foreground: Option, + pub background: Option, +} + #[derive(Deserialize, Copy, Clone, Default, Debug, PartialEq, Eq)] pub struct IndexedColor { pub color: Rgb, -- cgit v1.2.3-54-g00ecf