Skip to content

tmux: hooks support (set-hook) #100

@daiimus

Description

@daiimus

Summary

Support tmux hooks for custom event-driven behavior beyond the built-in control mode notifications.

What it is

tmux hooks allow registering commands to run when specific events occur. In control mode, hooks can be used to send additional information when events happen that aren't covered by the standard `%`-notifications.

Commands needed

Command Purpose
`set-hook [-g] hook-name command` Register a hook
`show-hooks [-g]` List registered hooks

Why this matters

Hooks extend the notification system. For example:

  • `after-select-pane` — custom action when pane focus changes
  • `after-resize-pane` — custom action on resize
  • `client-attached` / `client-detached` — custom actions on client lifecycle

This is mainly relevant if Geistty needs to react to events that don't have built-in `%`-notifications.

Priority

Low — the built-in notifications cover the important events. Hooks are for advanced customization.

Upstream potential

Fully upstreamable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestp3-lowCosmetic, noisy logs, minor polishtmuxzig-forkRequires Ghostty fork changes

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions