1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2025-06-15 07:00:20 +02:00
aerc/lib/state
Karel Balej 5919e9dfda term: allow setting custom title for the terminal tab
Add a template for the terminal tab title and define two
terminal-specific properties: Title which expands to whatever the
underlying application requests via OSC and defaults to the command name
and Bell which is a boolean indicating whether the application has
emitted bell, the flag is cleared when the corresponding tab gains focus
and is not set at all if it currently has it.

This can among other things be used to highlight the terminal tab when
the underlying process prints the bell, such as by setting the template
as such:

	tab-title-terminal={{if .Bell}}[BELL] {{end}}{{.Title}}

Implements: https://todo.sr.ht/~rjarry/aerc/138
Changelog-added: A tab-title-terminal setting for customizing the
 title of tabs in which the terminal widget is run.
Requested-by: Drew DeVault <drew@ddevault.org>
Signed-off-by: Karel Balej <balejk@matfyz.cz>
Acked-by: Robin Jarry <robin@jarry.cc>
2025-05-05 13:49:04 +02:00
..
state.go statusline: add column based render format 2023-02-20 14:48:42 +01:00
templates.go term: allow setting custom title for the terminal tab 2025-05-05 13:49:04 +02:00
texter.go templates: add visual mode indicator to TrayInfo 2024-03-04 22:33:15 +01:00