# LibTmux.TmuxChaining

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Chaining/TmuxChaining.cs#L18
- **Page:** https://libtmux.org/reference/dotnet/libtmux-tmuxchaining/

Turns a request record into a command a chain can carry.

Every overload builds its command with the same code the one-shot method
uses, so a chained call and a direct call send identical arguments rather
than two descriptions that have to be kept in step.

What each overload takes is decided by what tmux needs, not by taste. A
session names no target because the session is what is being made; a window
names the session that will hold it; keys name the pane, because which
flags tmux accepts depends on the server version and the pane is what knows
it.

## Members

- `ToCommand` (method) — Returns a hook request as one tmux command.
- `ExecuteAsync` (method) — Runs a hook request on its own.
- `ToRunCommand` (method) — Returns running a hook as one tmux command.
- `ToUnsetCommand` (method) — Returns removing a hook as one tmux command.
- `ToCommands` (method) — Returns every command a multi-entry hook request sends.
