pub struct CommandPaneOpenData {
pub view: String,
pub file: Option<String>,
pub url: Option<String>,
pub cwd: Option<String>,
pub title: Option<String>,
pub tab_id: Option<String>,
pub split_direction: Option<String>,
pub split_reference_block_id: Option<String>,
pub focus: Option<bool>,
pub tree_expanded: Option<bool>,
pub floating: Option<bool>,
}Expand description
Request for pane.open — create a new pane showing the given view.
Supported views: editor, term, browser, sysinfo, help.
file is required for editor; url is required for browser.
Placement: if split_direction (“right” / “left” / “down” / “up”)
and split_reference_block_id are provided, the new pane splits
relative to that block. Otherwise it is inserted at the tab root.
Fields§
§view: String§file: Option<String>§url: Option<String>§cwd: Option<String>§title: Option<String>§tab_id: Option<String>§split_direction: Option<String>§split_reference_block_id: Option<String>§focus: Option<bool>§tree_expanded: Option<bool>editor only: initial file-tree sidebar state. Some(false) opens the
editor with its tree collapsed (just the file, no explorer). Written to
block.meta["editor:tree_expanded"], which the frontend EditorViewModel
restores on init. Absent / Some(true) → the frontend default (expanded).
floating: Option<bool>Some(true) opens the pane as a floating window instead of a docked
split. The block is created then moved into a fresh floating workspace
via the tear_off_block saga; the launcher broadcasts an
openfloatingpane directive scoped to the source window, whose frontend
calls the host open_floating_pane_window command to materialize the OS
window. split_direction / split_reference_block_id are ignored when
floating. See docs/specs/SPEC_OPENEDITOR_FLOATING_AND_COLLAPSED_TREE_2026_06_16.md.
Trait Implementations§
Source§impl Clone for CommandPaneOpenData
impl Clone for CommandPaneOpenData
Source§fn clone(&self) -> CommandPaneOpenData
fn clone(&self) -> CommandPaneOpenData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CommandPaneOpenData
impl Debug for CommandPaneOpenData
Source§impl<'de> Deserialize<'de> for CommandPaneOpenData
impl<'de> Deserialize<'de> for CommandPaneOpenData
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>,
Auto Trait Implementations§
impl Freeze for CommandPaneOpenData
impl RefUnwindSafe for CommandPaneOpenData
impl Send for CommandPaneOpenData
impl Sync for CommandPaneOpenData
impl Unpin for CommandPaneOpenData
impl UnwindSafe for CommandPaneOpenData
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more