pub enum OpenTarget {
Default,
Split,
VSplit,
Tab,
}Expand description
Where a file-opening action should land the opened buffer.
<CR> uses Default (the host’s preference, typically the active
pane). <C-s> / <C-v> / <C-t> override to a horizontal split,
vertical split or new tab respectively.
Owned in lattice-core (alongside the pane geometry) so both the
picker’s accept vocabulary (lattice_picker::OpenTarget re-exports
this) and the grammar’s Effect::OpenInTarget payload reference one
canonical type without lattice-grammar depending on lattice-picker
(wrong layering direction). Moved here from lattice-picker when
Effect::OpenInTarget landed (LM.0); the picker re-exports it so
every existing lattice_picker::OpenTarget call site is untouched.
Variants§
Default
<CR> – host preference (active pane by default).
Split
<C-s> – open in a new horizontal split below.
VSplit
<C-v> – open in a new vertical split to the right.
Tab
<C-t> – open in a brand-new tab.
Trait Implementations§
Source§impl Clone for OpenTarget
impl Clone for OpenTarget
Source§fn clone(&self) -> OpenTarget
fn clone(&self) -> OpenTarget
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for OpenTarget
Source§impl Debug for OpenTarget
impl Debug for OpenTarget
Source§impl Default for OpenTarget
impl Default for OpenTarget
Source§fn default() -> OpenTarget
fn default() -> OpenTarget
Source§impl<'de> Deserialize<'de> for OpenTarget
impl<'de> Deserialize<'de> for OpenTarget
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>,
impl Eq for OpenTarget
Source§impl PartialEq for OpenTarget
impl PartialEq for OpenTarget
Source§impl Serialize for OpenTarget
impl Serialize for OpenTarget
impl StructuralPartialEq for OpenTarget
Auto Trait Implementations§
impl Freeze for OpenTarget
impl RefUnwindSafe for OpenTarget
impl Send for OpenTarget
impl Sync for OpenTarget
impl Unpin for OpenTarget
impl UnsafeUnpin for OpenTarget
impl UnwindSafe for OpenTarget
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
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
key and return true if they are equal.