[−][src]Struct tmux_interface::tmux_interface::TmuxInterface
This structure is used to store execution parameters of tmux
, including binary
name. Full description of fields can be found using man tmux
.
man tmux
Manual
tmux [-2CluvV] [-c shell-command] [-f file] [-L socket-name]
[-S socket-path] [command [flags]]
Fields
colours256: Option<bool>
Tmux options fields
Force tmux to assume the terminal supports 256 colours
control_mode: Option<bool>
Start in control mode
login_shell: Option<bool>
Behave as a login shell
force_utf8: Option<bool>
Write UTF-8 output to the terminal
verbose_logging: Option<bool>
Request verbose logging
version: Option<bool>
Report the tmux version
shell_cmd: Option<&'a str>
Execute shell-command using the default shell
file: Option<&'a str>
Specify an alternative configuration file
socket_name: Option<&'a str>
Allow a different socket name to be specified
socket_path: Option<&'a str>
Specify a full alternative path to the server socket
disable_echo: Option<bool>
Disable echo
tmux: Option<&'a str>
non tmux options fields
Tmux binary name (default: tmux
, can be set as tmux_mock.sh
for "sniffing")
environment: Option<&'a str>
Environment variables for tmux (currently not used)
pre_hook: Option<Box<dyn FnMut(&mut String, &Vec<&str>, &Vec<&str>) -> Result<Option<Output>, Error>>>
define a callback function for displaying or editing all command's arguments: callback(bin: &mut String, options: &Vec<&str>, subcmd_with_args: &Vec<&str>) -> Result this function will be called before command.output();
post_hook: Option<Box<dyn FnMut(&mut Output) -> Result<Option<Output>, Error>>>
define a callback function for displaying or editing command's output callback(output: &mut Output) -> Result this function will be called after command.output();
Methods
impl<'a> TmuxInterface<'a>
[src]
All functions from man tmux "Buffers" listed below man tmux
pub fn choose_buffer(
&mut self,
choose_buffer: Option<&ChooseBuffer>
) -> Result<Output, Error>
[src]
&mut self,
choose_buffer: Option<&ChooseBuffer>
) -> Result<Output, Error>
Put a pane into buffer mode, where a buffer may be chosen interactively from a list.
Manual
tmux choose-buffer [-NZr] [-F format] [-f filter] [-O sort-order]
[-t target-pane] [template]
pub fn clear_history(
&mut self,
target_pane: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
target_pane: Option<&str>
) -> Result<Output, Error>
Remove and free the history for the specified pane.
Manual
tmux clear-history [-t target-pane]
(alias: clearhist)
pub fn delete_buffer(
&mut self,
buffer_name: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
buffer_name: Option<&str>
) -> Result<Output, Error>
Delete the buffer named buffer-name, or the most recently added automatically named buffer if not specified.
Manual
tmux delete-buffer [-b buffer-name]
(alias: deleteb)
pub fn list_buffers(&mut self, format: Option<&str>) -> Result<Output, Error>
[src]
pub fn load_buffer(
&mut self,
buffer_name: Option<&str>,
path: &str
) -> Result<Output, Error>
[src]
&mut self,
buffer_name: Option<&str>,
path: &str
) -> Result<Output, Error>
Load the contents of the specified paste buffer from path.
Manual
tmux load-buffer [-b buffer-name] path
(alias: loadb)
pub fn paste_buffer(
&mut self,
paste_buffer: Option<&PasteBuffer>
) -> Result<Output, Error>
[src]
&mut self,
paste_buffer: Option<&PasteBuffer>
) -> Result<Output, Error>
Insert the contents of a paste buffer into the specified pane.
Manual
tmux paste-buffer [-dpr] [-b buffer-name] [-s separator] [-t target-pane]
(alias: pasteb)
pub fn save_buffer(
&mut self,
append: Option<bool>,
buffer_name: Option<&str>,
path: &str
) -> Result<Output, Error>
[src]
&mut self,
append: Option<bool>,
buffer_name: Option<&str>,
path: &str
) -> Result<Output, Error>
Save the contents of the specified paste buffer to path.
Manual
tmux save-buffer [-a] [-b buffer-name] path
(alias: saveb)
pub fn set_buffer(
&mut self,
append: Option<bool>,
buffer_name: Option<&str>,
new_buffer_name: Option<&str>,
data: &str
) -> Result<Output, Error>
[src]
&mut self,
append: Option<bool>,
buffer_name: Option<&str>,
new_buffer_name: Option<&str>,
data: &str
) -> Result<Output, Error>
Set the contents of the specified buffer to data.
Manual
tmux set-buffer [-a] [-b buffer-name] [-n new-buffer-name] data
(alias: setb)
pub fn show_buffer(
&mut self,
buffer_name: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
buffer_name: Option<&str>
) -> Result<Output, Error>
Display the contents of the specified buffer.
Manual
tmux show-buffer [-b buffer-name]
(alias: showb)
impl<'a> TmuxInterface<'a>
[src]
All functions from man tmux "Clients and Sessions" listed below man tmux
pub fn attach_session(
&mut self,
attach_session: Option<&AttachSession>
) -> Result<Output, Error>
[src]
&mut self,
attach_session: Option<&AttachSession>
) -> Result<Output, Error>
Create a new client in the current terminal and attach it to target-session
Manual
tmux attach-session [-dErx] [-c working-directory] [-t target-session]
(alias: attach)
pub fn detach_client(
&mut self,
detach_client: Option<&DetachClient>
) -> Result<Output, Error>
[src]
&mut self,
detach_client: Option<&DetachClient>
) -> Result<Output, Error>
Detach the current client
Manual
tmux detach-client [-aP] [-E shell-command] [-s target-session] [-t target-client]
(alias: detach)
pub fn has_session(
&mut self,
target_session: Option<&str>
) -> Result<bool, Error>
[src]
&mut self,
target_session: Option<&str>
) -> Result<bool, Error>
pub fn kill_server(&mut self) -> Result<Output, Error>
[src]
pub fn kill_session(
&mut self,
all: Option<bool>,
clear_alerts: Option<bool>,
target_session: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
all: Option<bool>,
clear_alerts: Option<bool>,
target_session: Option<&str>
) -> Result<Output, Error>
pub fn list_clients(
&mut self,
format: Option<&str>,
target_session: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
format: Option<&str>,
target_session: Option<&str>
) -> Result<Output, Error>
List all clients attached to the server
Manual
tmux list-clients [-F format] [-t target-session]
(alias: lsc)
pub fn list_commands(&mut self, format: Option<&str>) -> Result<Output, Error>
[src]
List the syntax of all commands supported by tmux
Manual
tmux list-commands [-F format]
(alias: lscm)
pub fn list_sessions(&mut self, format: Option<&str>) -> Result<String, Error>
[src]
pub fn lock_client(
&mut self,
target_client: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
target_client: Option<&str>
) -> Result<Output, Error>
pub fn lock_session(
&mut self,
target_session: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
target_session: Option<&str>
) -> Result<Output, Error>
Lock all clients attached to target-session
Manual
tmux lock-session [-t target-session]
(alias: locks)
pub fn new_session(
&mut self,
new_session: Option<&NewSession>
) -> Result<String, Error>
[src]
&mut self,
new_session: Option<&NewSession>
) -> Result<String, Error>
Create a new session with name session-name
Manual
tmux new-session [-AdDEPX] [-c start-directory] [-F format] [-n window-name]
[-s session-name] [-t group-name] [-x width] [-y height] [shell-command]
(alias: new)
pub fn refresh_client(
&mut self,
refresh_client: Option<&RefreshClient>
) -> Result<Output, Error>
[src]
&mut self,
refresh_client: Option<&RefreshClient>
) -> Result<Output, Error>
Refresh the current client
Manual
tmux refresh-client [-cDlLRSU] [-C XxY] [-F flags] [-t target-client]
[adjustment]
(alias: refresh)
pub fn rename_session(
&mut self,
target_session: Option<&str>,
new_name: &str
) -> Result<Output, Error>
[src]
&mut self,
target_session: Option<&str>,
new_name: &str
) -> Result<Output, Error>
Rename the session to new-name
Manual
tmux rename-session [-t target-session] new-name
(alias: rename)
pub fn show_messages(
&mut self,
jobs: Option<bool>,
terminal: Option<bool>,
target_client: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
jobs: Option<bool>,
terminal: Option<bool>,
target_client: Option<&str>
) -> Result<Output, Error>
Show client messages or server information
Manual
tmux show-messages [-JT] [-t target-client]
(alias: showmsgs)
pub fn source_file(
&mut self,
not_execute: Option<bool>,
quite: Option<bool>,
show_parsed: Option<bool>,
path: &str
) -> Result<Output, Error>
[src]
&mut self,
not_execute: Option<bool>,
quite: Option<bool>,
show_parsed: Option<bool>,
path: &str
) -> Result<Output, Error>
pub fn start_server(&mut self) -> Result<Output, Error>
[src]
Start the tmux server, if not already running, without creating any sessions
Manual
tmux start-server
(alias: start)
pub fn suspend_client(
&mut self,
target_client: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
target_client: Option<&str>
) -> Result<Output, Error>
Suspend a client by sending SIGTSTP (tty stop)
Manual
tmux suspend-client [-t target-client]
(alias: suspendc)
pub fn switch_client(
&mut self,
switch_client: Option<&SwitchClient>
) -> Result<Output, Error>
[src]
&mut self,
switch_client: Option<&SwitchClient>
) -> Result<Output, Error>
Switch the current session for client target-client
to target-session
Manual
tmux switch-client [-ElnprZ] [-c target-client] [-t target-session] [-T key-table]
(alias: switchc)
impl<'a> TmuxInterface<'a>
[src]
All functions from man tmux "Global and session environment" listed below man tmux
pub fn set_environment(
&mut self,
set_environment: Option<&SetEnvironment>,
name: &str
) -> Result<Output, Error>
[src]
&mut self,
set_environment: Option<&SetEnvironment>,
name: &str
) -> Result<Output, Error>
Manual
tmux set-environment [-gru] [-t target-session] name [value]
(alias: setenv)
pub fn show_environment(
&mut self,
global: Option<bool>,
shell_format: Option<bool>,
target_session: Option<&str>,
variable: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
global: Option<bool>,
shell_format: Option<bool>,
target_session: Option<&str>,
variable: Option<&str>
) -> Result<Output, Error>
Manual
tmux show-environment [-gs] [-t target-session] [variable]
(alias: showenv)
impl<'a> TmuxInterface<'a>
[src]
All functions from man tmux "Hooks" listed below man tmux
pub fn set_hook(
&mut self,
set_hook: Option<&SetHook>,
hook_name: &str,
command: &str
) -> Result<Output, Error>
[src]
&mut self,
set_hook: Option<&SetHook>,
hook_name: &str,
command: &str
) -> Result<Output, Error>
Manual
tmux set-hook [-agRu] [-t target-session] hook-name command
pub fn show_hooks(
&mut self,
global: Option<bool>,
target_session: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
global: Option<bool>,
target_session: Option<&str>
) -> Result<Output, Error>
Manual
tmux show-hooks [-g] [-t target-session]
impl<'a> TmuxInterface<'a>
[src]
All functions from man tmux "Key Bindings" listed below man tmux
pub fn bind_key(
&mut self,
bind_key: Option<&BindKey>,
key: &str,
command: &str
) -> Result<Output, Error>
[src]
&mut self,
bind_key: Option<&BindKey>,
key: &str,
command: &str
) -> Result<Output, Error>
Manual
tmux bind-key [-nr] [-T key-table] key command [arguments]
(alias: bind)
pub fn list_keys(&mut self, key_table: Option<&str>) -> Result<Output, Error>
[src]
Manual
tmux list-keys [-T key-table]
(alias: lsk)
pub fn send_keys(
&mut self,
send_keys: Option<&SendKeys>,
key: &Vec<&str>
) -> Result<Output, Error>
[src]
&mut self,
send_keys: Option<&SendKeys>,
key: &Vec<&str>
) -> Result<Output, Error>
Manual
tmux send-keys [-FHlMRX] [-N repeat-count] [-t target-pane] key ...
(alias: send)
pub fn send_prefix(
&mut self,
secondary: Option<bool>,
target_pane: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
secondary: Option<bool>,
target_pane: Option<&str>
) -> Result<Output, Error>
Manual
tmux send-prefix [-2] [-t target-pane]
pub fn unbind_key(
&mut self,
all: Option<bool>,
root: Option<bool>,
key_table: Option<&str>,
key: &str
) -> Result<Output, Error>
[src]
&mut self,
all: Option<bool>,
root: Option<bool>,
key_table: Option<&str>,
key: &str
) -> Result<Output, Error>
Manual
tmux unbind-key [-an] [-T key-table] key
(alias: unbind)
impl<'a> TmuxInterface<'a>
[src]
All functions from man tmux "Miscellaneous" listed below man tmux
pub fn clock_mode(&mut self, target_pane: Option<&str>) -> Result<Output, Error>
[src]
Manual
tmux clock-mode [-t target-pane]
pub fn if_shell(
&mut self,
if_shell: Option<&IfShell>,
shell_command: &str,
command: &str
) -> Result<Output, Error>
[src]
&mut self,
if_shell: Option<&IfShell>,
shell_command: &str,
command: &str
) -> Result<Output, Error>
Manual
tmux if-shell [-bF] [-t target-pane] shell-command command [command]
(alias: if)
pub fn lock_server(&mut self) -> Result<Output, Error>
[src]
Manual
tmux lock-server
(alias: lock)
pub fn run_shell(
&mut self,
backgroud: Option<bool>,
target_pane: Option<&str>,
shell_command: &str
) -> Result<Output, Error>
[src]
&mut self,
backgroud: Option<bool>,
target_pane: Option<&str>,
shell_command: &str
) -> Result<Output, Error>
Manual
tmux run-shell [-b] [-t target-pane] shell-command
(alias: run)
pub fn wait_for(
&mut self,
lock: Option<bool>,
prevent_exit: Option<bool>,
unlock: Option<bool>,
channel: &str
) -> Result<Output, Error>
[src]
&mut self,
lock: Option<bool>,
prevent_exit: Option<bool>,
unlock: Option<bool>,
channel: &str
) -> Result<Output, Error>
Manual
tmux wait-for [-L | -S | -U] channel
(alias: wait)
impl<'a> TmuxInterface<'a>
[src]
All functions from man tmux "Options" listed below man tmux
pub fn set_option(
&mut self,
set_option: Option<&SetOption>,
option: &str,
value: &str
) -> Result<Output, Error>
[src]
&mut self,
set_option: Option<&SetOption>,
option: &str,
value: &str
) -> Result<Output, Error>
Manual
tmux set-option [-aFgoqsuw] [-t target-pane] option value
(alias: set)
pub fn show_options(
&mut self,
show_options: Option<&ShowOptions>
) -> Result<String, Error>
[src]
&mut self,
show_options: Option<&ShowOptions>
) -> Result<String, Error>
Manual
tmux show-options [-AgHpqsvw] [-t target-pane] [option]
(alias: show)
pub fn show_window_options(
&mut self,
global: Option<bool>,
only_value: Option<bool>,
target_window: Option<&str>,
option: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
global: Option<bool>,
only_value: Option<bool>,
target_window: Option<&str>,
option: Option<&str>
) -> Result<Output, Error>
Manual
tmux show-window-options [-gv] [-t target-window] [option]
(alias: showw)
impl<'a> TmuxInterface<'a>
[src]
All functions from man tmux "Status line" listed below man tmux
pub fn command_prompt(
&mut self,
command_prompt: Option<&CommandPrompt>
) -> Result<Output, Error>
[src]
&mut self,
command_prompt: Option<&CommandPrompt>
) -> Result<Output, Error>
Manual
tmux command-prompt [-1i] [-I inputs] [-p prompts] [-t target-client] [template]
pub fn confirm_before(
&mut self,
prompt: Option<&str>,
target_client: Option<&str>,
command: &str
) -> Result<Output, Error>
[src]
&mut self,
prompt: Option<&str>,
target_client: Option<&str>,
command: &str
) -> Result<Output, Error>
Manual
tmux confirm-before [-p prompt] [-t target-client] command
(alias: confirm)
pub fn display_menu(
&mut self,
display_menu: Option<&DisplayMenu>,
name: &str,
key: &str,
command: &str
) -> Result<Output, Error>
[src]
&mut self,
display_menu: Option<&DisplayMenu>,
name: &str,
key: &str,
command: &str
) -> Result<Output, Error>
Manual
tmux display-menu [-c target-client] [-t target-pane] [-T title]
[-x position] [-y position] name key command ...
(alias: menu)
pub fn display_message(
&mut self,
display_message: Option<&DisplayMessage>
) -> Result<Output, Error>
[src]
&mut self,
display_message: Option<&DisplayMessage>
) -> Result<Output, Error>
Manual
tmux display-message [-aIpv] [-c target-client] [-t target-pane] [message]
(alias: display)
impl<'a> TmuxInterface<'a>
[src]
Common TmuxInterface
functions
pub fn new() -> Self
[src]
Create new TmuxInterface
instance initialized with default values
pub fn subcommand(
&mut self,
subcmd: &str,
args: &[&str]
) -> Result<Output, Error>
[src]
&mut self,
subcmd: &str,
args: &[&str]
) -> Result<Output, Error>
Execute subcommand of tmux
Manual
tmux [-2CluvV] [-c shell-command] [-f file] [-L socket-name] [-S socket-path]
[command [flags]]
Examples
use crate::tmux_interface::TmuxInterface; let mut tmux = TmuxInterface::new(); tmux.subcommand("has-session", &["-t", "session_name"]).unwrap();
pub fn exec(&mut self, args: &Vec<&str>) -> Result<Output, Error>
[src]
pub fn version(&mut self) -> Result<Version, Error>
[src]
Manual
tmux -V
impl<'a> TmuxInterface<'a>
[src]
Windows and panes man tmux
pub fn copy_mode(
&mut self,
mouse_drag: Option<bool>,
bottom_exit: Option<bool>,
page_up: Option<bool>,
target_pane: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
mouse_drag: Option<bool>,
bottom_exit: Option<bool>,
page_up: Option<bool>,
target_pane: Option<&str>
) -> Result<Output, Error>
pub fn break_pane(
&mut self,
break_pane: Option<&BreakPane>
) -> Result<Output, Error>
[src]
&mut self,
break_pane: Option<&BreakPane>
) -> Result<Output, Error>
Break src-pane
off from its containing window to make it the only pane in dst-window
Manual
tmux break-pane [-dP] [-F format] [-n window-name] [-s src-pane] [-t dst-window]
(alias: breakp)
pub fn capture_pane(
&mut self,
capture_pane: Option<&CapturePane>
) -> Result<Output, Error>
[src]
&mut self,
capture_pane: Option<&CapturePane>
) -> Result<Output, Error>
Capture the contents of a pane
Manual
tmux capture-pane [-aepPqCJN] [-b buffer-name] [-E end-line] [-S start-line]
[-t target-pane]
(alias: capturep)
pub fn choose_client(
&mut self,
choose_client: Option<&ChooseClient>
) -> Result<Output, Error>
[src]
&mut self,
choose_client: Option<&ChooseClient>
) -> Result<Output, Error>
Put a pane into client mode, allowing a client to be selected interactively from a list
Manual
tmux choose-client [-NrZ] [-F format] [-f filter] [-O sort-order] [-t target-pane]
[template]
pub fn choose_tree(
&mut self,
choose_tree: Option<&ChooseTree>
) -> Result<Output, Error>
[src]
&mut self,
choose_tree: Option<&ChooseTree>
) -> Result<Output, Error>
Put a pane into tree mode, where a session, window or pane may be chosen interactively from a list
Manual
tmux choose-tree [-GNrswZ] [-F format] [-f filter] [-O sort-order] [-t target-pane]
[template]
pub fn display_panes(
&mut self,
not_block: Option<bool>,
duration: Option<&str>,
target_client: Option<&str>,
template: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
not_block: Option<bool>,
duration: Option<&str>,
target_client: Option<&str>,
template: Option<&str>
) -> Result<Output, Error>
Display a visible indicator of each pane shown by target-client
Manual
tmux display-panes [-b] [-d duration] [-t target-client] [template] (alias: displayp)
pub fn find_window(
&mut self,
find_window: Option<&FindWindow>,
match_string: &str
) -> Result<Output, Error>
[src]
&mut self,
find_window: Option<&FindWindow>,
match_string: &str
) -> Result<Output, Error>
Search for the fnmatch(3) pattern match-string
in window names,
titles, and visible content (but not history)
Manual
tmux find-window [-rCNTZ] [-t target-pane] match-string
(alias: findw)
pub fn join_pane(
&mut self,
join_pane: Option<&JoinPane>
) -> Result<Output, Error>
[src]
&mut self,
join_pane: Option<&JoinPane>
) -> Result<Output, Error>
Like split-window, but instead of splitting dst-pane
and creating a new pane, split it
and move src-pane
into the space
Manual
tmux join-pane [-bdfhv] [-l size] [-s src-pane] [-t dst-pane]
(alias: joinp)
pub fn kill_pane(
&mut self,
all: Option<bool>,
target_pane: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
all: Option<bool>,
target_pane: Option<&str>
) -> Result<Output, Error>
pub fn kill_window(
&mut self,
all: Option<bool>,
target_window: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
all: Option<bool>,
target_window: Option<&str>
) -> Result<Output, Error>
Kill the current window or the window at target-window, removing it from any sessions to which it is linked
Manual
tmux kill-window [-a] [-t target-window]
(alias: killw)
pub fn last_pane(
&mut self,
disable: Option<bool>,
enable: Option<bool>,
keep_zoomed: Option<bool>,
target_window: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
disable: Option<bool>,
enable: Option<bool>,
keep_zoomed: Option<bool>,
target_window: Option<&str>
) -> Result<Output, Error>
Select the last (previously selected) pane
Manual
tmux last-pane [-deZ] [-t target-window]
(alias: lastp)
pub fn last_window(
&mut self,
target_session: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
target_session: Option<&str>
) -> Result<Output, Error>
Select the last (previously selected) window
Manual
tmux last-window [-t target-session]
(alias: last)
pub fn link_window(
&mut self,
link_window: Option<&LinkWindow>
) -> Result<Output, Error>
[src]
&mut self,
link_window: Option<&LinkWindow>
) -> Result<Output, Error>
Link the window at src-window to the specified dst-window
Manual
tmux link-window [-adk] [-s src-window] [-t dst-window]
(alias: linkw)
pub fn list_panes(
&mut self,
all: Option<bool>,
session: Option<bool>,
format: Option<&str>,
target: Option<&str>
) -> Result<String, Error>
[src]
&mut self,
all: Option<bool>,
session: Option<bool>,
format: Option<&str>,
target: Option<&str>
) -> Result<String, Error>
pub fn list_windows(
&mut self,
all: Option<bool>,
format: Option<&str>,
target_session: Option<&str>
) -> Result<String, Error>
[src]
&mut self,
all: Option<bool>,
format: Option<&str>,
target_session: Option<&str>
) -> Result<String, Error>
List windows on the server
Manual
tmux list-windows [-a] [-F format] [-t target-session]
(alias: lsw)
pub fn move_pane(
&mut self,
move_pane: Option<&MovePane>
) -> Result<Output, Error>
[src]
&mut self,
move_pane: Option<&MovePane>
) -> Result<Output, Error>
Like join-pane, but src-pane
and dst-pane
may belong to the same window
Manual
tmux move-pane [-bdhv] [-l size] [-s src-pane] [-t dst-pane]
(alias: movep)
pub fn move_window(
&mut self,
move_window: Option<&MoveWindow>
) -> Result<Output, Error>
[src]
&mut self,
move_window: Option<&MoveWindow>
) -> Result<Output, Error>
This is similar to link-window, except the window at src-window
is moved to dst-window
Manual
tmux move-window [-ardk] [-s src-window] [-t dst-window]
(alias: movew)
pub fn new_window(
&mut self,
new_window: Option<&NewWindow>
) -> Result<String, Error>
[src]
&mut self,
new_window: Option<&NewWindow>
) -> Result<String, Error>
Create a new window
Manual
tmux new-window [-adkP] [-c start-directory] [-e environment] [-F format] [-n window-name]
[-t target-window] [shell-command]
(alias: neww)
pub fn next_layout(
&mut self,
target_window: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
target_window: Option<&str>
) -> Result<Output, Error>
Move a window to the next layout and rearrange the panes to fit
Manual
tmux next-layout [-t target-window]
(alias: nextl)
pub fn next_window(
&mut self,
alert: Option<bool>,
target_session: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
alert: Option<bool>,
target_session: Option<&str>
) -> Result<Output, Error>
Move to the next window in the session
Manual
tmux next-window [-a] [-t target-session] (alias: next)
pub fn pipe_pane(
&mut self,
pipe_pane: Option<&PipePane>
) -> Result<Output, Error>
[src]
&mut self,
pipe_pane: Option<&PipePane>
) -> Result<Output, Error>
Pipe output sent by the program in target-pane to a shell command or vice versa
Manual
tmux pipe-pane [-IOo] [-t target-pane] [shell-command]
(alias: pipep)
pub fn previous_layout(
&mut self,
target_window: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
target_window: Option<&str>
) -> Result<Output, Error>
Move to the previous layout in the session
Manual
tmux previous-layout [-t target-window]
(alias: prevl)
pub fn previous_window(
&mut self,
alert: Option<bool>,
target_session: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
alert: Option<bool>,
target_session: Option<&str>
) -> Result<Output, Error>
Move to the previous window in the session
Manual
tmux previous-window [-a] [-t target-session]
(alias: prev)
pub fn rename_window(
&mut self,
target_window: Option<&str>,
new_name: &str
) -> Result<Output, Error>
[src]
&mut self,
target_window: Option<&str>,
new_name: &str
) -> Result<Output, Error>
Rename the current window, or the window at target-window if specified, to new-name
Manual
tmux rename-window [-t target-window] new-name
(alias: renamew)
pub fn resize_pane(
&mut self,
resize_pane: Option<&ResizePane>
) -> Result<Output, Error>
[src]
&mut self,
resize_pane: Option<&ResizePane>
) -> Result<Output, Error>
Resize a pane, up, down, left or right
Manual
tmux resize-pane [-DLMRUZ] [-t target-pane] [-x width] [-y height] [adjustment]
(alias: resizep)
pub fn resize_window(
&mut self,
resize_window: Option<&ResizeWindow>
) -> Result<Output, Error>
[src]
&mut self,
resize_window: Option<&ResizeWindow>
) -> Result<Output, Error>
Resize a window, up, down, left or right
Manual
tmux resize-window [-aADLRU] [-t target-window] [-x width] [-y height] [adjustment]
(alias: resizew)
pub fn respawn_pane(
&mut self,
respawn_pane: Option<&RespawnPane>
) -> Result<Output, Error>
[src]
&mut self,
respawn_pane: Option<&RespawnPane>
) -> Result<Output, Error>
Reactivate a pane in which the command has exited
Manual
tmux respawn-pane [-k] [-c start-directory] [-e environment] [-t target-pane]
[shell-command]
(alias: respawnp)
pub fn respawn_window(
&mut self,
respawn_window: Option<&RespawnWindow>
) -> Result<Output, Error>
[src]
&mut self,
respawn_window: Option<&RespawnWindow>
) -> Result<Output, Error>
Reactivate a window in which the command has exited
Manual
tmux respawn-window [-k] [-c start-directory] [-e environment] [-t target-window]
[shell-command]
(alias: respawnw)
pub fn rotate_window(
&mut self,
down: Option<bool>,
up: Option<bool>,
keep_zoomed: Option<bool>,
target_window: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
down: Option<bool>,
up: Option<bool>,
keep_zoomed: Option<bool>,
target_window: Option<&str>
) -> Result<Output, Error>
Rotate the positions of the panes within a window
Manual
tmux rotate-window [-DUZ] [-t target-window]
(alias: rotatew)
pub fn select_layout(
&mut self,
select_layout: Option<&SelectLayot>
) -> Result<Output, Error>
[src]
&mut self,
select_layout: Option<&SelectLayot>
) -> Result<Output, Error>
Choose a specific layout for a window
Manual
tmux select-layout [-Enop] [-t target-pane] [layout-name]
(alias: selectl)
pub fn select_pane(
&mut self,
select_pane: Option<&SelectPane>
) -> Result<Output, Error>
[src]
&mut self,
select_pane: Option<&SelectPane>
) -> Result<Output, Error>
Make pane target-pane
the active pane in window target-window
Manual
tmux select-pane [-DdeLlMmRUZ] [-T title] [-t target-pane]
(alias: selectp)
pub fn select_window(
&mut self,
select_window: Option<&SelectWindow>
) -> Result<Output, Error>
[src]
&mut self,
select_window: Option<&SelectWindow>
) -> Result<Output, Error>
Select the window at target-window
Manual
tmux select-window [-lnpT] [-t target-window]
(alias: selectw)
pub fn split_window(
&mut self,
split_window: Option<&SplitWindow>
) -> Result<String, Error>
[src]
&mut self,
split_window: Option<&SplitWindow>
) -> Result<String, Error>
Create a new pane by splitting target-pane
Manual
tmux split-window [-bdfhIvP] [-c start-directory] [-e environment] [-l size]
[-t target-pane] [shell-command] [-F format]
(alias: splitw)
pub fn swap_pane(
&mut self,
swap_pane: Option<&SwapPane>
) -> Result<Output, Error>
[src]
&mut self,
swap_pane: Option<&SwapPane>
) -> Result<Output, Error>
pub fn swap_window(
&mut self,
detached: Option<bool>,
src_window: Option<&str>,
dst_window: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
detached: Option<bool>,
src_window: Option<&str>,
dst_window: Option<&str>
) -> Result<Output, Error>
This is similar to link-window, except the source and destination windows are swapped
Manual
tmux swap-window [-d] [-s src-window] [-t dst-window]
(alias: swapw)
pub fn unlink_window(
&mut self,
k: Option<bool>,
target_window: Option<&str>
) -> Result<Output, Error>
[src]
&mut self,
k: Option<bool>,
target_window: Option<&str>
) -> Result<Output, Error>
Trait Implementations
impl<'a> Default for TmuxInterface<'a>
[src]
fn default() -> TmuxInterface<'a>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for TmuxInterface<'a>
impl<'a> !Send for TmuxInterface<'a>
impl<'a> !Sync for TmuxInterface<'a>
impl<'a> Unpin for TmuxInterface<'a>
impl<'a> !UnwindSafe for TmuxInterface<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,