From df596da4ea5c525265bdcc36f566ae13daeea7c9 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Wed, 6 Jul 2022 16:08:37 -0700 Subject: [PATCH] docs: add mux_window:gui_window() --- .gitignore | 13 +++++++------ docs/config/lua/mux-window/gui_window.md | 12 ++++++++++++ docs/config/lua/mux-window/index.md | 18 ------------------ docs/config/lua/window/mux_window.md | 2 ++ 4 files changed, 21 insertions(+), 24 deletions(-) create mode 100644 docs/config/lua/mux-window/gui_window.md delete mode 100644 docs/config/lua/mux-window/index.md diff --git a/.gitignore b/.gitignore index 45f4ec762..f7475bdbb 100644 --- a/.gitignore +++ b/.gitignore @@ -15,14 +15,15 @@ /docs/cli/cli/index.md /docs/colorschemes/**/index.md /docs/config/lua/config/index.md -/docs/config/lua/wezterm/index.md -/docs/config/lua/wezterm.mux/index.md -/docs/config/lua/pane/index.md -/docs/config/lua/window/index.md -/docs/config/lua/mux-events/index.md /docs/config/lua/gui-events/index.md -/docs/config/lua/window-events/index.md /docs/config/lua/keyassignment/index.md +/docs/config/lua/mux-events/index.md +/docs/config/lua/mux-window/index.md +/docs/config/lua/pane/index.md +/docs/config/lua/wezterm.mux/index.md +/docs/config/lua/wezterm/index.md +/docs/config/lua/window-events/index.md +/docs/config/lua/window/index.md /docs/mermaid.min.js **/*.rs.bk .*.sw* diff --git a/docs/config/lua/mux-window/gui_window.md b/docs/config/lua/mux-window/gui_window.md new file mode 100644 index 000000000..d3919d94f --- /dev/null +++ b/docs/config/lua/mux-window/gui_window.md @@ -0,0 +1,12 @@ +# `window:gui_window()` + +*Since: nightly builds only* + +Attempts to resolve this mux window to its corresponding [Gui Window](../window/index.md). + +This may not succeed for a couple of reasons: + +* If called by the multiplexer daemon, there is no gui, so this will never succeed +* If the mux window is part of a workspace that is not the active workspace + +This method is the inverse of [window:mux_window](../window/mux_window.md). diff --git a/docs/config/lua/mux-window/index.md b/docs/config/lua/mux-window/index.md deleted file mode 100644 index c5ddb5d07..000000000 --- a/docs/config/lua/mux-window/index.md +++ /dev/null @@ -1,18 +0,0 @@ -# MuxWindow - -*Since: 20220624-141144-bd1b7c5d* - -`MuxWindow` represents a window that is managed by the multiplexer. - -It has the following methods: - - - - - [get_title](get_title.md) - - [get_workspace](get_workspace.md) - - [set_title](set_title.md) - - [set_workspace](set_workspace.md) - - [spawn_tab](spawn_tab.md) - - [tabs](tabs.md) - - [tabs_with_info](tabs_with_info.md) - - [window_id](window_id.md) diff --git a/docs/config/lua/window/mux_window.md b/docs/config/lua/window/mux_window.md index 3c6d0cc39..af9e8d60e 100644 --- a/docs/config/lua/window/mux_window.md +++ b/docs/config/lua/window/mux_window.md @@ -3,3 +3,5 @@ *Since: nightly builds only* Returns the [MuxWindow](../mux-window/index.md) representation of this window. + +This method is the inverse of [mux_window:gui_window](../mux-window/gui_window.md).