pub struct WhichKeyOpen {
pub prefix: KeySequence,
}Expand description
Event to open the which-key panel with a prefix filter
When dispatched, the which-key plugin will show keybindings that start
with the given prefix. For example, if prefix is [g], it will show
all bindings starting with g (like gg, ge, gd, etc.).
Fields§
§prefix: KeySequenceThe prefix keys to filter bindings (e.g., [g] for g? trigger)
Implementations§
Source§impl WhichKeyOpen
impl WhichKeyOpen
Sourcepub const fn new(prefix: KeySequence) -> Self
pub const fn new(prefix: KeySequence) -> Self
Create a new WhichKeyOpen event with the given prefix
Trait Implementations§
Source§impl Clone for WhichKeyOpen
impl Clone for WhichKeyOpen
Source§fn clone(&self) -> WhichKeyOpen
fn clone(&self) -> WhichKeyOpen
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WhichKeyOpen
impl Debug for WhichKeyOpen
Auto Trait Implementations§
impl Freeze for WhichKeyOpen
impl RefUnwindSafe for WhichKeyOpen
impl Send for WhichKeyOpen
impl Sync for WhichKeyOpen
impl Unpin for WhichKeyOpen
impl UnwindSafe for WhichKeyOpen
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