docs: add mux_window:gui_window()

This commit is contained in:
Wez Furlong committed 2022-07-06 16:10:17 -07:00
1 parent 30a2223524
commit df596da4ea
4 files changed
+21 -24

No files matched your search

+7 -6
View File
@@ -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*
+12
View File
@@ -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).
-18
View File
@@ -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)
+2
View File
@@ -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).