Server.choose
Open one of tmux's interactive choosers on a client.
Source and package
- Qualified name
-
libtmux::server:: Server:: choose - Module
- server
- Declared in
Server- Package
- libtmux
- Source
- crates/libtmux/src/server/interactive.rs
-
Description#
A chooser opens in a pane, which is why this needs no client and succeeds on a server nothing is attached to: the pane's
pane_in_modebecomes1and itspane_modebecomestree-mode, client or not.That is the difference from
Self::display_popup(),Self::display_menu(),Self::command_prompt()andSelf::display_panes(), which draw on a client and report "no current client" without one. Passingclient()here only says which client's current pane to open in.Errors
Returns
Error::ServerMismatchwhen the client belongs to another server, or an error when tmux refuses the command. A missing client is not one: this does not need one.