Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

options.OptionSchema.choices

Rust
  • Python Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
options
Declared in
OptionSchema
Package
libtmux
Source
crates/libtmux/src/options.rs
choices ( self ) → &'static [&'static str]
method [source]
method [source]
choices

Return the words a OptionKind::Choice option accepts, in tmux's order.

Empty for every other kind. tmux compares a choice exactly, so case matters.

Examples

use libtmux::option_schema;
let keys = option_schema("mode-keys").expect("a documented option");
assert_eq!(keys.choices(), ["emacs", "vi"]);
let limit = option_schema("history-limit").expect("a documented option");
assert!(limit.choices().is_empty());

0 declared, 0 inherited

Esc

Type to search.