pub struct PaneConfig {
pub shell_command_before: Vec<ShellCommand>,
pub shell_commands: Vec<ShellCommand>,
pub environment: Option<Vec<(String, String)>>,
pub start_directory: Option<PathBuf>,
pub focus: bool,
pub shell: Option<String>,
pub enter: bool,
pub sleep_before: Option<Duration>,
pub sleep_after: Option<Duration>,
pub suppress_history: Option<bool>,
pub unsupported_keys: Vec<String>,
}Expand description
One pane.
The default is a pane that runs nothing and would press Enter after
anything it were given, which is what tmuxp’s - pane, - blank and an
empty - all mean.
Fields§
§shell_command_before: Vec<ShellCommand>Commands run in this pane before Self::shell_commands, in order,
after the workspace’s and the window’s own
WindowConfig::shell_command_before.
shell_commands: Vec<ShellCommand>Commands to run in the pane once it exists.
environment: Option<Vec<(String, String)>>Environment variables set for the process this pane starts.
None inherits the window’s WindowConfig::environment wholesale;
Some, even an empty one, replaces it rather than adding to it, as
tmuxp does.
start_directory: Option<PathBuf>The pane’s working directory.
focus: boolWhether this pane should end up selected.
shell: Option<String>A command that replaces this pane’s shell, overriding
WindowConfig::window_shell when both are given.
enter: boolWhether to press Enter after each command, until a command sets its
own ShellCommand::enter.
tmuxp’s enter: false types a command without running it, which is
how a file leaves something ready for the user to review. It covers
the shell_command_before commands typed into this pane too.
sleep_before: Option<Duration>How long to wait before each command, until a command sets its own.
sleep_after: Option<Duration>How long to wait after each command, until a command sets its own.
suppress_history: Option<bool>Whether this pane’s commands stay out of the shell’s history.
None inherits the window, then the workspace.
unsupported_keys: Vec<String>Keys this parser recognized on the pane but does not act on.