tmuxtmuxCLI manual

Choose documentation 1

3.2a

tmux manual version

Latest (3.7c) 3.7c 3.2a
English

tmux list-panes

command tmux 3.2a

If -a is given, target is ignored and all panes on the server are listed.

Syntax

tmux list-panes [-as] [-F format] [-f filter] [-t target-window]

Alias: lsp.

Behavior

If -a is given, target is ignored and all panes on the server are listed. If -s is given, target is a session (or the current session). If neither is given, target is a window (or the current window). -F specifies the format of each line and -f a filter. Only panes for which the filter is true are shown. See the FORMATS section.

Guides

C implementation

Internal declarations in tmux 3.2a:

Use from a library

These methods send list-panes. Each describes its own defaults, errors and execution model.

Library methods that send tmux list-panes, by scope
Language Server -a cmd_list_panes_server Session -s cmd_list_panes_session Window -t cmd_list_panes_window
Python Server.panes Server.search_panes Session.panes Session.search_panes Window.panes Window.search_panes Pane.from_pane_id
Ruby Async::Server#list_panes Async::Server#search_panes Async::Server#snapshot LibTmux::Server#list_panes LibTmux::Server#search_panes LibTmux::Server#snapshot Session#list_panes Window#list_panes Pane#break_out
Lua Server:snapshot
PowerShell Get-TmuxPane Get-TmuxPane Get-TmuxPane
Julia snapshot a session exists read_formats
Erlang fetch/1 the server has a session fetch/2 the server has a session snapshot/1 the server has a session snapshot/2 the server has a session
Elixir Server.snapshot!/2 Server.snapshot/2 Capture.fetch/2
Common Lisp client.fetch-clients the server has sessions client.fetch-panes the server has sessions client.fetch-sessions the server has sessions client.fetch-snapshot the server has sessions client.fetch-windows the server has sessions client.refresh the server has sessions
TypeScript Server.snapshot
Rust Server.panes Session.panes ControlSender.watch_only Window.panes Window.search_panes
Go Server.SearchPanes Server.Snapshot Client.ResolveAttachment Session.SearchPanes Window.SearchPanes Pane.Refresh Server.Pane
Java Server.paneFields Server.panes Server.snapshot
Clojure snapshot!
Kotlin Server.paneFields Server.panes Server.snapshot
Scala cats.Server.paneFields cats.Server.panes cats.Server.snapshot scaladsl.Server.paneFields scaladsl.Server.panes scaladsl.Server.snapshot
C# Server.CaptureSnapshotAsync Server.GetPanesAsync Server.SearchPanesAsync Session.GetActivePaneAsync Session.GetPanesAsync Session.SearchPanesAsync Window.FindPaneAsync Window.GetActivePaneAsync Window.GetPaneAsync Window.GetPanesAsync Window.SearchPanesAsync Client.GetAttachedPaneAsync
F# newSession the spec names a first window newSession the spec has more than one window
C++ Server::panes Session::panes Window::panes
Swift Server.panes() Server.panes(where:)
OCaml capture capture
Perl Async::Server::clients Async::Server::listings kind is pane Async::Server::new_session after accepted creation Async::Server::new_window after accepted creation Async::Server::query_panes Async::Server::snapshot Async::Server::split_pane after accepted creation LibTmux::Server::clients LibTmux::Server::listings kind is pane LibTmux::Server::new_session after accepted creation LibTmux::Server::new_window after accepted creation LibTmux::Server::query_panes LibTmux::Server::snapshot LibTmux::Server::split_pane after accepted creation
Raku Server.query pane query or full graph Server.query-async pane query or full graph Server.query-panes Server.query-sessions relationship predicates require a full graph Server.query-window-links relationship predicates require a full graph Server.query-windows relationship predicates require a full graph Server.snapshot Server.snapshot-async ClientRef.inspect Connection.query pane query or full graph Connection.query-async pane query or full graph Connection.query-panes Connection.snapshot Connection.snapshot-async PaneRef.inspect SessionRef.inspect WindowRef.inspect

No method in Haskell sends this command itself.

tmux sources and license

Syntax comes from tmux 3.2a list-commands. See the global options for sockets and configuration, and command syntax and targets.

Behavior is taken from the tmux 3.2a manual.

Command declaration

Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>

Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Esc

Type to search.

Reference previewOpen reference