Enum OpenTarget
pub enum OpenTarget {
Default,
Split,
VSplit,
Tab,
}Expand description
Issue #32 (2026-05-22): where a picker’s file-opening outcome should
land. <CR> uses Default; <C-s> / <C-v> / <C-t> override to a
split / vsplit / new tab.
Defined in lattice_core::ui::pane (LM.0) so Effect::OpenInTarget
can name the same canonical type; re-exported here so the picker’s
accept vocabulary and every lattice_picker::OpenTarget call site are
unchanged.
Only the file-targeting outcome arms (OpenFile, SwitchBuffer,
JumpInBuffer, JumpToLocation) honor this. Non-file outcomes
(commands, registers, snippets, LSP code actions) ignore it.
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§
§impl Clone for OpenTarget
impl Clone for OpenTarget
§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
§impl Debug for OpenTarget
impl Debug for OpenTarget
§impl Default for OpenTarget
impl Default for OpenTarget
§fn default() -> OpenTarget
fn default() -> OpenTarget
§impl<'de> Deserialize<'de> for OpenTarget
impl<'de> Deserialize<'de> for OpenTarget
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OpenTarget, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OpenTarget, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for OpenTarget
§impl PartialEq for OpenTarget
impl PartialEq for OpenTarget
§impl Serialize for OpenTarget
impl Serialize for OpenTarget
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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.