From cf989fb9daf9aaa1cc61da58ce0edc9674fb5212 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 11 Sep 2022 07:16:20 -0700 Subject: [PATCH] docs: update for MuxPane/Pane merger --- ci/generate-docs.py | 1 - docs/config/lua/MuxPane/index.markdown | 8 -------- docs/config/lua/MuxPane/pane_id.md | 7 ------- docs/config/lua/MuxTab/panes.md | 2 +- docs/config/lua/MuxTab/panes_with_info.md | 2 +- docs/config/lua/mux-window/spawn_tab.md | 2 +- docs/config/lua/pane/index.markdown | 19 ++++++++++++++----- docs/config/lua/pane/mux_pane.md | 8 +++++++- .../lua/{MuxPane => pane}/send_paste.md | 0 .../config/lua/{MuxPane => pane}/send_text.md | 0 docs/config/lua/{MuxPane => pane}/split.md | 2 +- docs/config/lua/{MuxPane => pane}/tab.md | 0 docs/config/lua/{MuxPane => pane}/window.md | 0 docs/config/lua/wezterm.mux/get_pane.md | 4 ++-- docs/config/lua/wezterm.mux/spawn_window.md | 2 +- 15 files changed, 28 insertions(+), 29 deletions(-) delete mode 100644 docs/config/lua/MuxPane/index.markdown delete mode 100644 docs/config/lua/MuxPane/pane_id.md rename docs/config/lua/{MuxPane => pane}/send_paste.md (100%) rename docs/config/lua/{MuxPane => pane}/send_text.md (100%) rename docs/config/lua/{MuxPane => pane}/split.md (98%) rename docs/config/lua/{MuxPane => pane}/tab.md (100%) rename docs/config/lua/{MuxPane => pane}/window.md (100%) diff --git a/ci/generate-docs.py b/ci/generate-docs.py index 801f3f145..742e708e6 100644 --- a/ci/generate-docs.py +++ b/ci/generate-docs.py @@ -393,7 +393,6 @@ TOC = [ Page("object: LocalProcessInfo", "config/lua/LocalProcessInfo.md"), Gen("object: MuxWindow", "config/lua/mux-window"), Gen("object: MuxTab", "config/lua/MuxTab"), - Gen("object: MuxPane", "config/lua/MuxPane"), Page("object: PaneInformation", "config/lua/PaneInformation.md"), Page("object: TabInformation", "config/lua/TabInformation.md"), Page("object: SshDomain", "config/lua/SshDomain.md"), diff --git a/docs/config/lua/MuxPane/index.markdown b/docs/config/lua/MuxPane/index.markdown deleted file mode 100644 index a927246c8..000000000 --- a/docs/config/lua/MuxPane/index.markdown +++ /dev/null @@ -1,8 +0,0 @@ -# MuxPane - -*Since: 20220624-141144-bd1b7c5d* - -`MuxPane` represents a pane that is managed by the multiplexer. - -It has the following methods: - diff --git a/docs/config/lua/MuxPane/pane_id.md b/docs/config/lua/MuxPane/pane_id.md deleted file mode 100644 index 4a2f2bc26..000000000 --- a/docs/config/lua/MuxPane/pane_id.md +++ /dev/null @@ -1,7 +0,0 @@ -# `pane:pane_id()` - -*Since: 20220624-141144-bd1b7c5d* - -Returns the pane id - - diff --git a/docs/config/lua/MuxTab/panes.md b/docs/config/lua/MuxTab/panes.md index aa7891d25..7bfeb2c74 100644 --- a/docs/config/lua/MuxTab/panes.md +++ b/docs/config/lua/MuxTab/panes.md @@ -2,7 +2,7 @@ *Since: 20220807-113146-c2fee766* -Returns an array table containing the set of [MuxPane](../MuxPane/index.md) objects +Returns an array table containing the set of [Pane](../pane/index.md) objects contained by this tab. diff --git a/docs/config/lua/MuxTab/panes_with_info.md b/docs/config/lua/MuxTab/panes_with_info.md index 0bd175ef8..8ebcfb421 100644 --- a/docs/config/lua/MuxTab/panes_with_info.md +++ b/docs/config/lua/MuxTab/panes_with_info.md @@ -16,6 +16,6 @@ Each element is a lua table with the following fields: * `height` - The height of this pane in cells * `pixel_width` - The width of this pane in pixels * `pixel_height` - The height of this pane in pixels -* `pane` - The [MuxPane](../MuxPane/index.md) object +* `pane` - The [Pane](../pane/index.md) object diff --git a/docs/config/lua/mux-window/spawn_tab.md b/docs/config/lua/mux-window/spawn_tab.md index 7bc19e422..b23b75173 100644 --- a/docs/config/lua/mux-window/spawn_tab.md +++ b/docs/config/lua/mux-window/spawn_tab.md @@ -3,7 +3,7 @@ *Since: 20220624-141144-bd1b7c5d* Spawns a program into a new tab within this window, returning the -[MuxTab](../MuxTab/index.md), [MuxPane](../MuxPane/index.md) and +[MuxTab](../MuxTab/index.md), [Pane](../pane/index.md) and [MuxWindow](index.md) objects associated with it: ```lua diff --git a/docs/config/lua/pane/index.markdown b/docs/config/lua/pane/index.markdown index 576f71b49..37448d00d 100644 --- a/docs/config/lua/pane/index.markdown +++ b/docs/config/lua/pane/index.markdown @@ -1,10 +1,19 @@ # `Pane` object -A Pane object cannot be created in lua code; it is typically passed to your -code via an event callback. A Pane object is a handle to a live instance of a -Pane that is known to the wezterm process. A Pane object tracks the psuedo -terminal (or real serial terminal) and associated process(es) and the parsed -screen and scrollback. +--- +*Since: nightly builds only* + +In previous releases there were separate `MuxPane` and `Pane` objects created +by the mux and gui layers, respectively. This is no longer the case: there is +now just the underlying mux pane which is referred to in these docs as `Pane` +for the sake of simplicity. +--- + + +A Pane object is typically passed to your code via an event callback. A Pane +object is a handle to a live instance of a Pane that is known to the wezterm +process. A Pane object tracks the psuedo terminal (or real serial terminal) +and associated process(es) and the parsed screen and scrollback. A Pane object can be used to send input to the associated processes and introspect the state of the terminal emulation for that pane. diff --git a/docs/config/lua/pane/mux_pane.md b/docs/config/lua/pane/mux_pane.md index 9d195ff6e..95291ae28 100644 --- a/docs/config/lua/pane/mux_pane.md +++ b/docs/config/lua/pane/mux_pane.md @@ -2,5 +2,11 @@ *Since: 20220807-113146-c2fee766* -Returns the [MuxPane](../MuxPane/index.md) representation of this pane. +*Deprecated Since: nightly builds only* + +Returns the `MuxPane` representation of this pane. + +In nightly versions of wezterm, there is no longer a distinction +between gui and mux representations of panes, so this method +returns itself. diff --git a/docs/config/lua/MuxPane/send_paste.md b/docs/config/lua/pane/send_paste.md similarity index 100% rename from docs/config/lua/MuxPane/send_paste.md rename to docs/config/lua/pane/send_paste.md diff --git a/docs/config/lua/MuxPane/send_text.md b/docs/config/lua/pane/send_text.md similarity index 100% rename from docs/config/lua/MuxPane/send_text.md rename to docs/config/lua/pane/send_text.md diff --git a/docs/config/lua/MuxPane/split.md b/docs/config/lua/pane/split.md similarity index 98% rename from docs/config/lua/MuxPane/split.md rename to docs/config/lua/pane/split.md index 5ce89cb29..791bcb15b 100644 --- a/docs/config/lua/MuxPane/split.md +++ b/docs/config/lua/pane/split.md @@ -3,7 +3,7 @@ *Since: 20220624-141144-bd1b7c5d* Splits `pane` and spawns a program into the split, returning the -`MuxPane` object associated with it: +`Pane` object associated with it: ```lua local new_pane = pane:split {} diff --git a/docs/config/lua/MuxPane/tab.md b/docs/config/lua/pane/tab.md similarity index 100% rename from docs/config/lua/MuxPane/tab.md rename to docs/config/lua/pane/tab.md diff --git a/docs/config/lua/MuxPane/window.md b/docs/config/lua/pane/window.md similarity index 100% rename from docs/config/lua/MuxPane/window.md rename to docs/config/lua/pane/window.md diff --git a/docs/config/lua/wezterm.mux/get_pane.md b/docs/config/lua/wezterm.mux/get_pane.md index 818c7b07a..dde08fc99 100644 --- a/docs/config/lua/wezterm.mux/get_pane.md +++ b/docs/config/lua/wezterm.mux/get_pane.md @@ -3,9 +3,9 @@ *Since: 20220624-141144-bd1b7c5d* Given a pane ID, verifies that the ID is a valid pane known to the mux -and returns a [MuxPane](../MuxPane/index.md) object that can be used to +and returns a [Pane](../pane/index.md) object that can be used to operate on the pane. This is useful for situations where you have obtained a pane id from -some other source and want to use the various `MuxPane` methods with it. +some other source and want to use the various `Pane` methods with it. diff --git a/docs/config/lua/wezterm.mux/spawn_window.md b/docs/config/lua/wezterm.mux/spawn_window.md index 7fc4562b4..e26b76e5a 100644 --- a/docs/config/lua/wezterm.mux/spawn_window.md +++ b/docs/config/lua/wezterm.mux/spawn_window.md @@ -3,7 +3,7 @@ *Since: 20220624-141144-bd1b7c5d* Spawns a program into a new window, returning the [MuxTab](../MuxTab/index.md), -[MuxPane](../MuxPane/index.md) and [MuxWindow](../mux-window/index.md) objects +[Pane](../pane/index.md) and [MuxWindow](../mux-window/index.md) objects associated with it: ```lua