pub enum PopupFocus {
Steal,
Passive,
}Expand description
Whether opening a popup moves focus into it. Names the distinction the code already makes between the two overlay entry points, so any popup kind (help, ACP permission menu, LSP code-action list) picks a focus mode without dragging in help-buffer machinery.
See docs/dev/architecture/popup-api.md §4.1.
Variants§
Steal
Focus moves into the popup buffer: it becomes the active buffer,
its major mode receives keys, and modal resets to Normal (State
B). :help, :describe-*, :apropos, the permission menu.
Passive
The popup floats over the active buffer, which keeps focus and the caret; modal and active-buffer are untouched (State A). Hover, signature help.
Trait Implementations§
Source§impl Clone for PopupFocus
impl Clone for PopupFocus
Source§fn clone(&self) -> PopupFocus
fn clone(&self) -> PopupFocus
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 PopupFocus
Source§impl Debug for PopupFocus
impl Debug for PopupFocus
Source§impl Default for PopupFocus
impl Default for PopupFocus
Source§fn default() -> PopupFocus
fn default() -> PopupFocus
Returns the “default value” for a type. Read more
impl Eq for PopupFocus
Source§impl PartialEq for PopupFocus
impl PartialEq for PopupFocus
impl StructuralPartialEq for PopupFocus
Auto Trait Implementations§
impl Freeze for PopupFocus
impl RefUnwindSafe for PopupFocus
impl Send for PopupFocus
impl Sync for PopupFocus
impl Unpin for PopupFocus
impl UnsafeUnpin for PopupFocus
impl UnwindSafe for PopupFocus
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<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.