From e00c7e8bf6cd810900c361f48f666e48608b38ab Mon Sep 17 00:00:00 2001 From: Lena <126529524+acuteenvy@users.noreply.github.com> Date: Mon, 14 Jul 2025 17:32:13 +0200 Subject: [PATCH 1/2] wezterm-cli: add page --- pages/common/wezterm-cli.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/wezterm-cli.md diff --git a/pages/common/wezterm-cli.md b/pages/common/wezterm-cli.md new file mode 100644 index 00000000000000..84d47d0d923ba9 --- /dev/null +++ b/pages/common/wezterm-cli.md @@ -0,0 +1,20 @@ +# wezterm cli + +> Interact with a running Wezterm GUI or multiplexer. +> More information: . + +- List windows, tabs, and panes: + +`wezterm cli list` + +- Split the current pane and print the new pane's ID to `stdout`: + +`wezterm cli split-pane --{{left|right|top|bottom}} --{{cells|percent}} {{n}}` + +- Activate (focus) a pane: + +`wezterm cli activate-pane --pane-id {{id}}` + +- Kill a pane: + +`wezterm cli kill-pane --pane-id {{id}}` From 96d49caf379fc17b6401ffeaec30b1bda4793bf4 Mon Sep 17 00:00:00 2001 From: Lena <126529524+acuteenvy@users.noreply.github.com> Date: Mon, 14 Jul 2025 17:32:23 +0200 Subject: [PATCH 2/2] wezterm: update page --- pages/common/wezterm.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pages/common/wezterm.md b/pages/common/wezterm.md index d595e591224afd..dd69c1f7431042 100644 --- a/pages/common/wezterm.md +++ b/pages/common/wezterm.md @@ -1,13 +1,14 @@ # wezterm > Wez's Terminal Emulator - a powerful cross-platform terminal emulator and multiplexer. +> Some subcommands such as `cli` have their own usage documentation. > More information: . - Start a new Wezterm process and create a window: `wezterm` -- Establish an `ssh` session: +- Establish an `ssh` session in a new Wezterm window: `wezterm ssh {{user}}@{{host}}:{{port}}` @@ -19,11 +20,11 @@ `wezterm imgcat {{path/to/image}}` -- Record a terminal session as an asciicat (by default recordings are found in `/tmp`): +- Record a terminal session as an asciicast (by default recordings are saved to `/tmp`): `wezterm record` -- Replay an asciicat terminal session: +- Replay an asciicast terminal session: `wezterm replay {{path/to/cast_file}}`