# HookScope

- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** enum
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/Options.swift#L64
- **Page:** https://libtmux.org/reference/swift/hookscope/

Which of tmux's hook tables a hook lives in.

tmux keeps two, and only two: one global, and one per session. `set-hook`
takes `-w` and `-p` and reports success for both, but the hook lands in the
session's table either way, and `show-hooks` has no server flag at all — so
a window or pane scope here would only ever read back empty. This asks for
neither, unlike ``OptionScope``, whose table addresses are all real.

## Members

- `!=(_:_:)` (function) — Returns a Boolean value indicating whether two values are not equal.
- `global` (constant)
- `session(_:)` (constant) — One session's own hooks, addressed by name or id.
- `init(from:)` (method) — Creates a new instance by decoding from the given decoder.
