pub enum QuitScope {
Pane,
All,
}Expand description
Scope for Effect::QuitEditor. Mirrors vim’s :q (close the active
pane; quit only when it is the last one) vs. :qa (quit the editor
regardless of how many panes / tabs are open). :q and :qa stay
distinct commands (separate registrations + aliases); QuitScope
is the one axis on which they differ, so the shared shutdown + dirty
guard stays in a single Editor::do_quit.
Variants§
Pane
:q[!] – close the active pane when more than one is open;
run the dirty guard and shut the editor only on the last pane.
All
:qa[!] – ignore pane / tab count; run the dirty guard and
shut the editor outright.
Trait Implementations§
impl Copy for QuitScope
Source§impl<'de> Deserialize<'de> for QuitScope
impl<'de> Deserialize<'de> for QuitScope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for QuitScope
impl StructuralPartialEq for QuitScope
Auto Trait Implementations§
impl Freeze for QuitScope
impl RefUnwindSafe for QuitScope
impl Send for QuitScope
impl Sync for QuitScope
impl Unpin for QuitScope
impl UnsafeUnpin for QuitScope
impl UnwindSafe for QuitScope
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.