pub struct ActionHandler;
Expand description
Handles the execution of actions triggered by key bindings
Implementations§
Source§impl ActionHandler
impl ActionHandler
Execute a navigation action
Sourcepub fn handle_mode_change(
action: &str,
app: &mut impl AppContext,
) -> Result<bool>
pub fn handle_mode_change( action: &str, app: &mut impl AppContext, ) -> Result<bool>
Execute a mode change action
Sourcepub fn handle_yank(action: &str, app: &mut impl AppContext) -> Result<bool>
pub fn handle_yank(action: &str, app: &mut impl AppContext) -> Result<bool>
Execute a yank/clipboard action
Sourcepub fn handle_export(action: &str, app: &mut impl AppContext) -> Result<bool>
pub fn handle_export(action: &str, app: &mut impl AppContext) -> Result<bool>
Execute an export action
Sourcepub fn handle_buffer(action: &str, app: &mut impl AppContext) -> Result<bool>
pub fn handle_buffer(action: &str, app: &mut impl AppContext) -> Result<bool>
Execute a buffer action
Sourcepub fn handle_query(action: &str, app: &mut impl AppContext) -> Result<bool>
pub fn handle_query(action: &str, app: &mut impl AppContext) -> Result<bool>
Execute a query action
Sourcepub fn handle_filter(action: &str, app: &mut impl AppContext) -> Result<bool>
pub fn handle_filter(action: &str, app: &mut impl AppContext) -> Result<bool>
Execute a filter/search action
Sourcepub fn handle_sort(action: &str, app: &mut impl AppContext) -> Result<bool>
pub fn handle_sort(action: &str, app: &mut impl AppContext) -> Result<bool>
Execute a sort action
Sourcepub fn handle_column(action: &str, app: &mut impl AppContext) -> Result<bool>
pub fn handle_column(action: &str, app: &mut impl AppContext) -> Result<bool>
Execute a column action
Auto Trait Implementations§
impl Freeze for ActionHandler
impl RefUnwindSafe for ActionHandler
impl Send for ActionHandler
impl Sync for ActionHandler
impl Unpin for ActionHandler
impl UnwindSafe for ActionHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more