pub struct SlashTrigger;Expand description
Event handler that inserts / and then triggers Tab completion when
the line is empty. This gives the Claude Code-style experience where
pressing / immediately shows the command picker list.
Trait Implementations§
Source§impl ConditionalEventHandler for SlashTrigger
impl ConditionalEventHandler for SlashTrigger
Source§fn handle(
&self,
_evt: &Event,
_n: RepeatCount,
_positive: bool,
ctx: &EventContext<'_>,
) -> Option<Cmd>
fn handle( &self, _evt: &Event, _n: RepeatCount, _positive: bool, ctx: &EventContext<'_>, ) -> Option<Cmd>
Takes the current input state and
returns the command to be performed or
None to perform the default
one.Auto Trait Implementations§
impl Freeze for SlashTrigger
impl RefUnwindSafe for SlashTrigger
impl Send for SlashTrigger
impl Sync for SlashTrigger
impl Unpin for SlashTrigger
impl UnsafeUnpin for SlashTrigger
impl UnwindSafe for SlashTrigger
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