Documentation
¶
Overview ¶
Package prefix caches the tmux prefix key and its binding table.
Frontend can't invoke "C-b" directly via send-keys (it would just be sent as a key press to the active program), so the server runs an FSM:
- user sends prefix key → enter "prefix waiting" state
- next key → look up binding in this cache → run the bound command
Mirrors stations/tmux-webui/server.py:383-463.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache lazily fetches the prefix key + bindings on first access. Safe for concurrent use; subsequent calls return the cached value.
func (*Cache) Bindings ¶
Bindings returns key→tmux-command from `tmux list-keys -T prefix`. Empty map on error (callers should fall back to sending the raw key).
Click to show internal directories.
Click to hide internal directories.