* feat(mark-last-tab): append last tab name with '*' I think there should be a better method instead of make the save function so crowded. But this works for now similar to `tmux` windows. But, `tmux` is using '*' for current and '-' for last Hardcoded '*' * Revert "feat(mark-last-tab): append last tab name with '*'" This reverts commit 6f11c16dd9b034977088820fbc86a4456df9d513. * feat(tab): add is_last to indicate previous active tab - last tab. Add usage example to format-tab-title.md Add docs to TabInformation.md Couldn't add tests, perhapse can you guide on adding test for this? * Update docs/config/lua/TabInformation.md renaming as suggested. Co-authored-by: Wez Furlong <wez@wezfurlong.org> * Update wezterm-gui/src/termwindow/mod.rs renaming as suggested. Co-authored-by: Wez Furlong <wez@wezfurlong.org> * Update docs/config/lua/window-events/format-tab-title.md Co-authored-by: Wez Furlong <wez@wezfurlong.org> * refactor: rename `TabInformation` attribute to `is_last_active` --------- Co-authored-by: Omar Elmasri <omarmasri@duck.com> Co-authored-by: Wez Furlong <wez@wezfurlong.org>
1.0 KiB
1.0 KiB
TabInformation
The TabInformation struct describes a tab. TabInformation is purely a
snapshot of some of the key characteristics of the tab, intended for use in
synchronous, fast, event callbacks that format GUI elements such as the window
and tab title bars.
The TabInformation struct contains the following fields:
tab_id- the identifier for the tabtab_index- the logical tab position within its containing window, with 0 indicating the leftmost tabis_active- is true if this tab is the active tabis_last_active- is true if this tab is the previously active tab. {{since('nightly', inline=True)}}active_pane- the PaneInformation for the active pane in this tabwindow_id- the ID of the window that contains this tab {{since('20220807-113146-c2fee766', inline=True)}}window_title- the title of the window that contains this tab {{since('20220807-113146-c2fee766', inline=True)}}tab_title- the title of the tab {{since('20220807-113146-c2fee766', inline=True)}}