aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2021-01-01 05:19:03 +0000
committerGitHub <noreply@github.com>2021-01-01 05:19:03 +0000
commita1e2d6a5573d967aaceeadaefa17b6a00a2e4ca4 (patch)
tree5bdda93b515ad95a57487b266b021507bbc6b049 /alacritty_terminal
parent8ed72cc065255007a7f0687e3b8a540e8c6202c6 (diff)
downloadalacritty-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.rs7
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,