7 Commits
Author SHA1 Message Date
KevinSilvester 21f656f931 docs: add missing panes field to TabInformation (#7710) 2026-06-04 13:31:13 +02:00
ad44b159c2 feat(mark-last-tab): append last tab name with '*' (#6895)
* 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>
2025-05-11 22:20:21 -07:00
Wez Furlong 40081cb573 docs: update a bunch of since lines to new macro 2023-03-20 22:54:27 -07:00
Wez Furlong 52af7a2b2b docs: 20220807-113146-c2fee766 release 2022-08-07 13:26:59 -07:00
Wez Furlong a282d07776 mux: add titles to mux window and tab objects
Previously, the mux layer had no internal understanding of titles other
than the Pane::get_title method to return state from a pane.

Users have asked for ways to explicitly set titles on windows and tabs,
so this commit is a step towards that.

The mux window and tab objects now store a title string.

The terminal layer now emits Alert::WindowTitleChanged when the window
title is changed via eg: OSC 0 or OSC 2.

The mux layer will respond to Alert::WindowTitleChanged by resolving the
window that corresponds to the source pane and amending its title.

The MuxWindow and MuxTab objects now provide accessor methods for the
title.

TabInformation (as used by format-tab-title and format-window-title) now
exposes the underlying window_id as well as tab_title and window_title.

The tab title can be changed via the lua MuxTab type, but there is not
currently an escape sequence associated with this.

The defaults for format-tab-title and format-window-title don't
currently consider these new title strings.

refs: https://github.com/wez/wezterm/issues/1598
2022-06-27 12:01:40 -07:00
Wez Furlong 09e101c268 add format-tab-title event
refs: https://github.com/wez/wezterm/issues/647
2021-04-24 17:59:39 -07:00
Wez Furlong e3fcdc9f36 add format-window-title event
This provides a flexible way for users to customize what gets
shown in the window title bar.

closes: https://github.com/wez/wezterm/pull/603
2021-04-24 16:47:26 -07:00