# LibTmux.ChooseTreeRequest.ToCommand

- **Module:** LibTmux.ChooseTreeRequest
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Requests/ChooseTreeRequest.cs#L68
- **Page:** https://libtmux.org/en/dotnet/latest/reference/libtmux-choosetreerequest-tocommand/

```
LibTmux.ChooseTreeRequest.ToCommand(pane: Pane) -> TmuxCommand
```

Returns a chooser request as one tmux command.

tmux 3.7 dropped the activity-time sort order and rejects it by name,
so the pane decides whether the built command carries it.

## Parameters

- `pane` (Pane): The pane the chooser opens in.

## Returns

The command, ready to add to a <see cref="TmuxChain" />.

## Raises

- `ArgumentNullException`: <paramref name="pane" /> is null.
