Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

enum libtmux-rs latest

Chooser

One of tmux's interactive choosers.

Source and package
Qualified name
libtmux::server::Chooser
Module
server
Package
libtmux
Source
crates/libtmux/src/server.rs
enum server.Chooser

Description#

Each opens a mode on a client and returns as soon as tmux accepts it; the user's eventual choice is not reported back here.

Examples#

use libtmux::Chooser;
// A chooser draws in an attached client's terminal, so this needs one; with
// no client tmux has nowhere to put it.
let client = server.clients().await?.into_iter().next();
server.choose(Chooser::Tree, client.as_ref()).await?;

Variants4#

Chooser variants
CasePayloadDescription
Buffer No payload Browse paste buffers.
Client No payload Browse attached clients.
Customize No payload Customize options and key bindings.
Tree No payload Browse sessions, windows, and panes together.
Esc

Type to search.

Reference previewOpen reference