pub struct EditContext { /* private fields */ }Expand description
Context for editing operations.
Implementations§
Source§impl EditContext
impl EditContext
Sourcepub fn get_cursor_end(&self) -> CursorEnd
pub fn get_cursor_end(&self) -> CursorEnd
Indicates where to leave the cursor after editing text.
Sourcepub fn get_target_shape(&self) -> Option<TargetShape>
pub fn get_target_shape(&self) -> Option<TargetShape>
Indicates a shape to be applied to an EditAction.
Sourcepub fn get_insert_style(&self) -> Option<InsertStyle>
pub fn get_insert_style(&self) -> Option<InsertStyle>
Indicates the style by which text should be inserted into the buffer.
Sourcepub fn get_last_column(&self) -> bool
pub fn get_last_column(&self) -> bool
Indicates whether it is okay to move the cursor into the last column of a line.
Sourcepub fn get_count(&self) -> Option<usize>
pub fn get_count(&self) -> Option<usize>
Indicates a count added to the context (if there is one).
Sourcepub fn get_register(&self) -> Option<Register>
pub fn get_register(&self) -> Option<Register>
Indicates which register yanked and deleted text should go to.
Sourcepub fn get_register_append(&self) -> bool
pub fn get_register_append(&self) -> bool
Indicates whether should be appended to the target register when yanking or deleting text.
Sourcepub fn get_search_regex_dir(&self) -> MoveDir1D
pub fn get_search_regex_dir(&self) -> MoveDir1D
Get the direction in which to search.
Sourcepub fn get_search_char(&self) -> Option<(MoveDir1D, bool, Char)>
pub fn get_search_char(&self) -> Option<(MoveDir1D, bool, Char)>
Returns a character to search for on the current line, and the direction in which to search.
Sourcepub fn get_replace_char(&self) -> Option<Char>
pub fn get_replace_char(&self) -> Option<Char>
Returns a character to use when performing an EditAction::Replace operation.
Sourcepub fn is_search_incremental(&self) -> bool
pub fn is_search_incremental(&self) -> bool
Whether to perform incremental searches while typing in the search bar.
Trait Implementations§
Source§impl Clone for EditContext
impl Clone for EditContext
Source§fn clone(&self) -> EditContext
fn clone(&self) -> EditContext
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EditContext
impl Debug for EditContext
Source§impl Default for EditContext
impl Default for EditContext
Source§impl From<EditContext> for EditContextBuilder
impl From<EditContext> for EditContextBuilder
Source§fn from(ctx: EditContext) -> Self
fn from(ctx: EditContext) -> Self
Source§impl PartialEq for EditContext
impl PartialEq for EditContext
Source§impl Resolve<Specifier<EditAction>, EditAction> for EditContext
impl Resolve<Specifier<EditAction>, EditAction> for EditContext
Source§fn resolve(&self, mark: &Specifier<EditAction>) -> EditAction
fn resolve(&self, mark: &Specifier<EditAction>) -> EditAction
T into an R.