Draw passive Alt-hold tab-title overlay with FreeType text

This commit is contained in:
Andrew Hamilton 2026-08-14 12:39:51 +10:00
parent e52ac98afe
commit db6bbac84c
4 changed files with 368 additions and 19 deletions

View file

@ -87,9 +87,16 @@ Notes:
| Key | Action |
|----------------------------|---------------------------------------------------|
| `Alt` (hold) | Show the tab-title overlay (top-left) |
| `Alt+Up` | Previous tab (hold to keep cycling) |
| `Alt+Down` | Next tab (hold to keep cycling) |
Holding `Alt` shows a passive overlay listing every tab's title with the
active tab highlighted; the list updates live as you cycle with `Up`/`Down`
and disappears on `Alt` release. It is drawn by tabbed itself, so it works
on hosts with or without a title bar (the overlay text uses a system font
via FreeType; set `TABBED_FONT` to pick one).
The tab-cycling hotkey only emits a physical press for the first tab switch;
repeats are synthesized, so holding `Alt+Up/Down` keeps stepping through
tabs while any other key stops it.