Struct EventContext
pub struct EventContext<'r> { /* private fields */ }
Give access to user input.
Implementations
impl<'r> EventContext<'r>
fn mode(&self) -> EditModeemacs or vi mode
fn input_mode(&self) -> InputModevi input mode
fn has_hint(&self) -> boolReturns
trueif there is a hint displayed.fn hint_text(&self) -> Option<&str>Returns the hint text that is shown after the current cursor position.
fn line(&self) -> &strcurrently edited line
fn pos(&self) -> usizeCurrent cursor position (byte position)