Skip to main content

WeztermPane

Struct WeztermPane 

Source
pub struct WeztermPane {
Show 18 fields pub cursor_shape: String, pub cursor_visibility: String, pub cursor_x: i64, pub cursor_y: i64, pub cwd: PathBuf, pub is_active: bool, pub is_zoomed: bool, pub left_col: i64, pub pane_id: i64, pub size: WeztermPaneSize, pub tab_id: i64, pub tab_title: String, pub title: String, pub top_row: i64, pub tty_name: String, pub window_id: i64, pub window_title: String, pub workspace: String,
}
Expand description

Represents a WezTerm pane with all its properties and state information.

Fields§

§cursor_shape: String

The shape of the cursor.

§cursor_visibility: String

The visibility state of the cursor.

§cursor_x: i64

The X coordinate of the cursor.

§cursor_y: i64

The Y coordinate of the cursor.

§cwd: PathBuf

The current working directory as a file URI.

§is_active: bool

Whether this pane is currently active.

§is_zoomed: bool

Whether this pane is zoomed (maximized).

§left_col: i64

The left column position of the pane.

§pane_id: i64

The unique ID of this pane.

§size: WeztermPaneSize

The size dimensions of the pane.

§tab_id: i64

The ID of the tab containing this pane.

§tab_title: String

The title of the tab containing this pane.

§title: String

The title of the pane.

§top_row: i64

The top row position of the pane.

§tty_name: String

The TTY device name associated with this pane.

§window_id: i64

The ID of the window containing this pane.

§window_title: String

The title of the window containing this pane.

§workspace: String

The workspace name.

Implementations§

Source§

impl WeztermPane

Source

pub fn is_sibling_terminal_pane_of(&self, other: &Self) -> bool

Given two WeztermPane checks if they are in the same tab and if the first has a current working directory that is the same or a child of the second one.

Source

pub fn absolute_cwd(&self) -> PathBuf

Converts the current working directory from a file URI to an absolute PathBuf.

Trait Implementations§

Source§

impl Clone for WeztermPane

Source§

fn clone(&self) -> WeztermPane

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WeztermPane

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for WeztermPane

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<O> ObjectMarkerFor<Local> for O
where O: 'static,

§

fn run_creation_hooks(report: ReportMut<'_, Dynamic, Local>)

§

impl<O> ObjectMarkerFor<SendSync> for O
where O: 'static + Send + Sync,

§

fn run_creation_hooks(report: ReportMut<'_>)

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,