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

PromptKind

Which prompt tmux is remembering answers for.

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

Examples#

use libtmux::PromptKind;
let guard = libtmux::test::TestServer::new().await?;
// tmux keeps a separate history per prompt kind, so a command typed at the
// `:` prompt is not offered when searching.
assert!(guard.server().prompt_history(PromptKind::Command).await?.is_empty());
assert!(guard.server().prompt_history(PromptKind::Search).await?.is_empty());
guard.shutdown().await?;

Variants4#

PromptKind variants
CasePayloadDescription
Command No payload The : command prompt.
Search No payload The search prompt in copy mode.
Target No payload A prompt asking for a target.
WindowTarget No payload A prompt asking for a window target.
Esc

Type to search.

Reference previewOpen reference