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.

method libtmux-rs latest

Server.find_window

Open tmux's window finder for a search string.

Source and package
Qualified name
libtmux::server::Server::find_window
Module
server
Declared in
Server
Package
libtmux
Source
crates/libtmux/src/server/interactive.rs
pub async fn find_window( &self, client: Option<&Client>, search: &str ) -> Result<(), Error>

Description#

This is separate from Server::choose() because it needs something to search for, where the other choosers list what already exists. Like them it opens in a pane rather than on a client, so it needs no client and leaves the pane in tree-mode on a server nothing is attached to.

Errors

Returns Error::ServerMismatch when 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.

Parameters

tmux command#

The tmux commands behind find_window.

tmux C API#

The C declarations in tmux that implement these commands.

Esc

Type to search.

Reference previewOpen reference