pub enum SearchAction {
FocusSearch,
FocusReplace,
ToggleReplace,
}Expand description
Synthetic search-panel actions from pointer chrome (buttons, boxes).
These are not keys: they originate from mouse clicks on the prompt bar
and travel on their own channel
(EditorHook::on_search_action) so KeyCode stays purely about
physical keys.
Variants§
FocusSearch
Focus the find input.
FocusReplace
Focus the replace input.
ToggleReplace
Toggle the replace section open/closed.
Trait Implementations§
Source§impl Clone for SearchAction
impl Clone for SearchAction
Source§fn clone(&self) -> SearchAction
fn clone(&self) -> SearchAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SearchAction
Source§impl Debug for SearchAction
impl Debug for SearchAction
impl Eq for SearchAction
Source§impl PartialEq for SearchAction
impl PartialEq for SearchAction
impl StructuralPartialEq for SearchAction
Auto Trait Implementations§
impl Freeze for SearchAction
impl RefUnwindSafe for SearchAction
impl Send for SearchAction
impl Sync for SearchAction
impl Unpin for SearchAction
impl UnsafeUnpin for SearchAction
impl UnwindSafe for SearchAction
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