Crate ytil_wezterm

Crate ytil_wezterm 

Source
Expand description

Discover WezTerm panes and build command strings for sending text, submitting input or activating panes.

Query panes (wezterm cli list) and generate shell‑safe strings for actions. Helpers locate sibling panes in the same tab by title and derive absolute working directories from file URIs.

Structs§

WeztermPane
Represents a WezTerm pane with all its properties and state information.
WeztermPaneSize
Represents the size and dimensions of a WezTerm pane.

Functions§

activate_pane_cmd
Generates a command string to activate a specific WeztermPane using the WezTerm CLI.
get_all_panes
Retrieves all WezTerm panes using the WezTerm CLI.
get_current_pane_id
Retrieves the current pane ID from the WEZTERM_PANE environment variable.
get_sibling_pane_with_titles
Finds a sibling WeztermPane in the same tab that matches one of the given titles.
send_text_to_pane_cmd
Generates a command string to send text to a specific WeztermPane using the WezTerm CLI.
submit_pane_cmd
Generates a command string to submit (send a carriage return) to a specific WeztermPane.