pub trait CommonAction {
// Required methods
fn exec_motion_mode(
&self,
ed: &Editor,
cursor: &mut Cursor,
motion_mode: MotionMode,
range: Range<usize>,
is_vertical: bool,
register: &mut Register,
);
fn do_edit(
&self,
ed: &Editor,
cursor: &mut Cursor,
cmd: &EditCommand,
modal: bool,
register: &mut Register,
smart_tab: bool,
) -> bool;
}Expand description
Trait for common actions needed for the default implementation of the operations.