diff options
author | Christian Duerr <contact@christianduerr.com> | 2021-01-01 05:19:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-01 05:19:03 +0000 |
commit | a1e2d6a5573d967aaceeadaefa17b6a00a2e4ca4 (patch) | |
tree | 5bdda93b515ad95a57487b266b021507bbc6b049 /alacritty_terminal | |
parent | 8ed72cc065255007a7f0687e3b8a540e8c6202c6 (diff) | |
download | alacritty-a1e2d6a5573d967aaceeadaefa17b6a00a2e4ca4.tar.gz alacritty-a1e2d6a5573d967aaceeadaefa17b6a00a2e4ca4.zip |
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.
Diffstat (limited to 'alacritty_terminal')
-rw-r--r-- | alacritty_terminal/src/config/colors.rs | 7 |
1 files changed, 7 insertions, 0 deletions
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<DimColors>, pub indexed_colors: Vec<IndexedColor>, 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<Rgb>, + pub background: Option<Rgb>, +} + #[derive(Deserialize, Copy, Clone, Default, Debug, PartialEq, Eq)] pub struct IndexedColor { pub color: Rgb, |