Skip to content

Add hook set and read (set-hook, show-hooks) #78

Open

Description

@tony

Summary

A caller cannot set or read a tmux hook with a named function. No module under lib/ defines a hook call, so the only route is a raw set-hook or show-hooks command through LibTmux.Server.run/3, and a control connection accepts no arbitrary command.

Motivation

The docs treat hooks only as host configuration that the managed control lane must find absent: the ownership guide requires "no executable effective hooks" and says the library never silently disables hooks, and the implementation notes name hooks as future work. A caller that wants a hook on pane death or window close builds the set-hook arguments by hand and runs them through Server.run/3.

The sibling ports offer it: Python has set_hook and show_hooks (hooks.py), Go has SetHook on sessions, windows and panes (hook_runtime.go) and Rust has Pane::set_hook (pane/settings.rs).

References

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions