pub struct VimCommandLineResolver { /* private fields */ }Expand description
Vim command-line mode key resolver.
Handles input for : (Ex commands), / (forward search), and ? (backward search).
Characters are accumulated in the command-line buffer until Enter or Escape.
§Behavior
- Printable characters →
InsertChar(goes to cmdline buffer) - Enter →
NotHandled(keybinding executes command/search) - Escape →
NotHandled(keybinding cancels) - Backspace →
NotHandled(keybinding deletes char)
Implementations§
Trait Implementations§
Source§impl Default for VimCommandLineResolver
impl Default for VimCommandLineResolver
Source§impl ModeKeyResolver for VimCommandLineResolver
impl ModeKeyResolver for VimCommandLineResolver
Source§fn resolve_with_keymap(
&self,
key: &KeyEvent,
_state: &mut ModeState,
input: &ResolveInput<'_>,
) -> ResolveResult
fn resolve_with_keymap( &self, key: &KeyEvent, _state: &mut ModeState, input: &ResolveInput<'_>, ) -> ResolveResult
Process a key event with access to keymap queries. Read more
Source§fn inherits_from(&self) -> Option<&ModeId>
fn inherits_from(&self) -> Option<&ModeId>
Optional parent mode to try if we return
NotHandled. Read moreSource§fn resolve(&self, _key: &KeyEvent, _state: &mut ModeState) -> ResolveResult
fn resolve(&self, _key: &KeyEvent, _state: &mut ModeState) -> ResolveResult
👎Deprecated since 0.9.5:
Override resolve_with_keymap() instead
Process a key event in this mode’s context (legacy API). Read more
Source§fn resolve_with_extensions(
&self,
key: &KeyEvent,
state: &mut ModeState,
input: &ResolveInput<'_>,
_shared_extensions: &mut ExtensionMap,
_client_extensions: &mut ExtensionMap,
) -> ResolveResult
fn resolve_with_extensions( &self, key: &KeyEvent, state: &mut ModeState, input: &ResolveInput<'_>, _shared_extensions: &mut ExtensionMap, _client_extensions: &mut ExtensionMap, ) -> ResolveResult
Process a key event with access to keymap queries AND session extensions. Read more
Source§fn resolve_with_session(
&self,
key: &KeyEvent,
state: &mut ModeState,
input: &ResolveInput<'_>,
_session: &mut dyn SessionApiDyn,
shared_extensions: &mut ExtensionMap,
client_extensions: &mut ExtensionMap,
) -> ResolveResult
fn resolve_with_session( &self, key: &KeyEvent, state: &mut ModeState, input: &ResolveInput<'_>, _session: &mut dyn SessionApiDyn, shared_extensions: &mut ExtensionMap, client_extensions: &mut ExtensionMap, ) -> ResolveResult
Process a key event with full session API access. Read more
Source§fn on_command_complete(
&self,
_session: &mut dyn SessionApiDyn,
_shared_extensions: &mut ExtensionMap,
_client_extensions: &mut ExtensionMap,
) -> Option<ModeTransition>
fn on_command_complete( &self, _session: &mut dyn SessionApiDyn, _shared_extensions: &mut ExtensionMap, _client_extensions: &mut ExtensionMap, ) -> Option<ModeTransition>
Hook called after a command executes successfully. Read more
Source§fn pending_keys(&self) -> KeySequence
fn pending_keys(&self) -> KeySequence
Get the accumulated pending keys for this resolver. Read more
Auto Trait Implementations§
impl Freeze for VimCommandLineResolver
impl RefUnwindSafe for VimCommandLineResolver
impl Send for VimCommandLineResolver
impl Sync for VimCommandLineResolver
impl Unpin for VimCommandLineResolver
impl UnsafeUnpin for VimCommandLineResolver
impl UnwindSafe for VimCommandLineResolver
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