Struct alacritty::event::SearchState [−][src]
pub struct SearchState {
pub direction: Direction,
pub history_index: Option<usize>,
display_offset_delta: i32,
origin: Point,
focused_match: Option<Match>,
history: VecDeque<String>,
dfas: Option<RegexSearch>,
}Expand description
Regex search state.
Fields
direction: DirectionSearch direction.
history_index: Option<usize>Current position in the search history.
display_offset_delta: i32Change in display offset since the beginning of the search.
origin: PointSearch origin in viewport coordinates relative to original display offset.
focused_match: Option<Match>Focused match during active search.
history: VecDeque<String>Search regex and history.
During an active search, the first element is the user’s current input.
While going through history, the SearchState::history_index will point to the element
in history which is currently being previewed.
dfas: Option<RegexSearch>Compiled search automatons.
Implementations
Focused match during vi-less search.
Active search dfas.